|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "node": true, |
| 4 | + "commonjs": true, |
| 5 | + "es2023": true |
| 6 | + }, |
| 7 | + "rules": { |
| 8 | + "eqeqeq": ["error", "smart"], |
| 9 | + "no-console": "error", |
| 10 | + "no-param-reassign": "error", |
| 11 | + "no-unused-vars": ["error", {"ignoreRestSiblings": true, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_"}], |
| 12 | + "no-undef": "error", |
| 13 | + |
| 14 | + "@typescript-eslint/consistent-type-imports": "error", |
| 15 | + "@typescript-eslint/adjacent-overload-signatures": "error", |
| 16 | + "@typescript-eslint/array-type": "error", |
| 17 | + "@typescript-eslint/ban-tslint-comment": "error", |
| 18 | + "@typescript-eslint/consistent-generic-constructors": "error", |
| 19 | + "@typescript-eslint/consistent-indexed-object-style": "error", |
| 20 | + "@typescript-eslint/consistent-type-definitions": "error", |
| 21 | + "@typescript-eslint/no-confusing-non-null-assertion": "error", |
| 22 | + "@typescript-eslint/no-empty-function": "off", |
| 23 | + "@typescript-eslint/no-inferrable-types": "off", |
| 24 | + "@typescript-eslint/prefer-for-of": "error", |
| 25 | + "@typescript-eslint/prefer-function-type": "error" |
| 26 | + }, |
| 27 | + "overrides": [ |
| 28 | + { |
| 29 | + "files": ["**/*.{ts,tsx}"], |
| 30 | + "rules": { |
| 31 | + "no-unused-vars": "off", |
| 32 | + "no-unused-expressions": "off", |
| 33 | + "no-undef": "off", |
| 34 | + |
| 35 | + "@typescript-eslint/no-unused-vars": [ |
| 36 | + "error", |
| 37 | + { |
| 38 | + "ignoreRestSiblings": true, |
| 39 | + "argsIgnorePattern": "^_", |
| 40 | + "varsIgnorePattern": "^_", |
| 41 | + "caughtErrorsIgnorePattern": "^_" |
| 42 | + } |
| 43 | + ], |
| 44 | + "@typescript-eslint/no-unused-expressions": [ |
| 45 | + "error", |
| 46 | + { |
| 47 | + "allowShortCircuit": true, |
| 48 | + "allowTernary": true, |
| 49 | + "allowTaggedTemplates": true |
| 50 | + } |
| 51 | + ] |
| 52 | + } |
| 53 | + } |
| 54 | + ] |
| 55 | +} |
0 commit comments