PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.2.9
Yatra – Travel Booking & Tour Operator Software v3.0.2.9
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.2.9, at resources/js/.eslintrc.cjs

36 lines 1023 B
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 ],
18 rules: {
19 // TypeScript specific rules
20 '@typescript-eslint/no-unused-vars': 'off', // Allow unused vars for WordPress patterns
21 '@typescript-eslint/no-explicit-any': 'off', // Allow any types for WordPress compatibility
22 '@typescript-eslint/explicit-function-return-type': 'off',
23 '@typescript-eslint/explicit-module-boundary-types': 'off',
24 '@typescript-eslint/no-non-null-assertion': 'off', // Allow for WordPress patterns
25
26 // General rules
27 'no-console': 'off', // Allow console for debugging
28 'no-debugger': 'error',
29 'prefer-const': 'off', // Allow let for WordPress patterns
30 'no-var': 'error',
31
32 // Allow unused variables with underscore prefix
33 'no-unused-vars': 'off',
34 },
35 };
36