PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.13
Yatra – Travel Booking & Tour Operator Software v3.0.13
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / resources / js / .eslintrc.cjs

.eslintrc.cjs in Yatra – Travel Booking & Tour Operator Software 3.0.13, at resources/js/.eslintrc.cjs

42 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 module.exports = {
2 env: {
3 browser: true,
4 es2020: true,
5 node: true,
6 },
7 parser: '@typescript-eslint/parser',
8 parserOptions: {
9 ecmaVersion: 2020,
10 sourceType: 'module',
11 ecmaFeatures: {
12 jsx: true,
13 },
14 },
15 plugins: [
16 '@typescript-eslint',
17 'react-hooks',
18 ],
19 rules: {
20 // TypeScript specific rules
21 '@typescript-eslint/no-unused-vars': 'off', // Allow unused vars for WordPress patterns
22 '@typescript-eslint/no-explicit-any': 'off', // Allow any types for WordPress compatibility
23 '@typescript-eslint/explicit-function-return-type': 'off',
24 '@typescript-eslint/explicit-module-boundary-types': 'off',
25 '@typescript-eslint/no-non-null-assertion': 'off', // Allow for WordPress patterns
26
27 // React hooks rules — register so `eslint-disable-next-line react-hooks/exhaustive-deps`
28 // directives resolve under --report-unused-disable-directives.
29 'react-hooks/rules-of-hooks': 'error',
30 'react-hooks/exhaustive-deps': 'warn',
31
32 // General rules
33 'no-console': 'off', // Allow console for debugging
34 'no-debugger': 'error',
35 'prefer-const': 'off', // Allow let for WordPress patterns
36 'no-var': 'error',
37
38 // Allow unused variables with underscore prefix
39 'no-unused-vars': 'off',
40 },
41 };
42