|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "overrides": [ |
| 4 | + { |
| 5 | + "files": ["src/**/*.ts"], |
| 6 | + "parserOptions": { |
| 7 | + "project": ["tsconfig.json"] |
| 8 | + }, |
| 9 | + "extends": [ |
| 10 | + "eslint:recommended", |
| 11 | + "plugin:@typescript-eslint/strict" |
| 12 | + ], |
| 13 | + "rules": { |
| 14 | + "@typescript-eslint/explicit-function-return-type": "warn", |
| 15 | + "@typescript-eslint/method-signature-style": ["warn"], |
| 16 | + "@typescript-eslint/no-extraneous-class": "off", |
| 17 | + "no-invalid-this": "off", |
| 18 | + "@typescript-eslint/no-invalid-this": "error", |
| 19 | + "no-loop-func": "off", |
| 20 | + "@typescript-eslint/no-loop-func": "error", |
| 21 | + "no-redeclare": "off", |
| 22 | + "@typescript-eslint/no-redeclare": "error", |
| 23 | + "no-shadow": "off", |
| 24 | + "@typescript-eslint/no-shadow": "error", |
| 25 | + "no-use-before-define": "off", |
| 26 | + "@typescript-eslint/no-use-before-define": "error", |
| 27 | + "@typescript-eslint/no-unnecessary-qualifier": "warn", |
| 28 | + "@typescript-eslint/prefer-readonly": "warn", |
| 29 | + "@typescript-eslint/prefer-regexp-exec": "error", |
| 30 | + "no-return-await": "off", |
| 31 | + "@typescript-eslint/return-await": "error", |
| 32 | + "@typescript-eslint/strict-boolean-expressions": "error", |
| 33 | + |
| 34 | + "array-callback-return": "error", |
| 35 | + "complexity": ["error", { "max": 8 }], |
| 36 | + "eqeqeq": ["error", "always", { "null": "ignore" }], |
| 37 | + "no-unused-vars": "warn", |
| 38 | + "object-shorthand": ["warn", "always"] |
| 39 | + } |
| 40 | + }, |
| 41 | + { |
| 42 | + "files": ["src/**/*.test.ts"], |
| 43 | + "parserOptions": { |
| 44 | + "project": ["tsconfig.test.json"] |
| 45 | + }, |
| 46 | + "rules": { |
| 47 | + "@typescript-eslint/no-non-null-assertion": ["off"], |
| 48 | + "@typescript-eslint/explicit-function-return-type": "off" |
| 49 | + } |
| 50 | + } |
| 51 | + ] |
| 52 | +} |
0 commit comments