|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "plugin:@typescript-eslint/recommended", |
| 5 | + "plugin:jest/recommended", |
| 6 | + "plugin:jsx-a11y/recommended", |
| 7 | + "plugin:prettier/recommended", |
| 8 | + "plugin:security/recommended-legacy", |
| 9 | + "plugin:sonarjs/recommended-legacy", |
| 10 | + "plugin:unicorn/recommended" |
| 11 | + ], |
| 12 | + "overrides": [ |
| 13 | + { |
| 14 | + "files": [ |
| 15 | + "*.js" |
| 16 | + ], |
| 17 | + "rules": { |
| 18 | + "@typescript-eslint/no-require-imports": "off", |
| 19 | + "@typescript-eslint/no-var-requires": "off", |
| 20 | + "global-require": "off", |
| 21 | + "unicorn/prefer-module": "off" |
| 22 | + } |
| 23 | + }, |
| 24 | + { |
| 25 | + "files": [ |
| 26 | + "*.{test,spec}.{ts,tsx}" |
| 27 | + ], |
| 28 | + "rules": { |
| 29 | + "max-classes-per-file": "off", |
| 30 | + "sonarjs/no-nested-functions": "off", |
| 31 | + "unicorn/consistent-function-scoping": "off", |
| 32 | + "unicorn/no-useless-undefined": "off" |
| 33 | + } |
| 34 | + } |
| 35 | + ], |
| 36 | + "plugins": [ |
| 37 | + "@typescript-eslint", |
| 38 | + "html", |
| 39 | + "import", |
| 40 | + "jest", |
| 41 | + "jsx-a11y", |
| 42 | + "prettier", |
| 43 | + "security", |
| 44 | + "sonarjs", |
| 45 | + "unicorn" |
| 46 | + ], |
| 47 | + "rules": { |
| 48 | + "@typescript-eslint/no-shadow": "error", |
| 49 | + "@typescript-eslint/no-unused-vars": [ |
| 50 | + "error", |
| 51 | + { |
| 52 | + "argsIgnorePattern": "^_", |
| 53 | + "ignoreRestSiblings": true, |
| 54 | + "varsIgnorePattern": "^_" |
| 55 | + } |
| 56 | + ], |
| 57 | + "class-methods-use-this": "off", |
| 58 | + "consistent-return": "off", |
| 59 | + "import/extensions": "off", |
| 60 | + "import/no-extraneous-dependencies": [ |
| 61 | + "error", |
| 62 | + { |
| 63 | + "devDependencies": [ |
| 64 | + "jest.config.ts", |
| 65 | + "jest.setup.ts", |
| 66 | + "**/__tests__/**", |
| 67 | + "**/*.dev.[jt]s?(x)" |
| 68 | + ] |
| 69 | + } |
| 70 | + ], |
| 71 | + "import/prefer-default-export": "off", |
| 72 | + "no-empty-function": "off", |
| 73 | + "no-param-reassign": "off", |
| 74 | + "no-restricted-syntax": "off", |
| 75 | + "no-shadow": "off", |
| 76 | + "no-underscore-dangle": "off", |
| 77 | + "no-useless-constructor": "off", |
| 78 | + "prefer-regex-literals": "off", |
| 79 | + "prettier/prettier": "error", |
| 80 | + "security/detect-object-injection": "off", |
| 81 | + "sonarjs/no-duplicate-string": "off", |
| 82 | + "sonarjs/no-small-switch": "off", |
| 83 | + "sonarjs/no-unused-vars": "off", |
| 84 | + "unicorn/filename-case": [ |
| 85 | + "error", |
| 86 | + { |
| 87 | + "case": "kebabCase", |
| 88 | + "ignore": [ |
| 89 | + ".tsx" |
| 90 | + ] |
| 91 | + } |
| 92 | + ], |
| 93 | + "unicorn/no-null": "off", |
| 94 | + "unicorn/prefer-module": "off", |
| 95 | + "unicorn/prevent-abbreviations": "off" |
| 96 | + }, |
| 97 | + "settings": { |
| 98 | + "import/resolver": { |
| 99 | + "typescript": {} |
| 100 | + } |
| 101 | + } |
| 102 | +} |
0 commit comments