| 1 | { |
| 2 | "root": true, |
| 3 | "extends": ["../.eslintrc.shared.json"], |
| 4 | "parserOptions": { |
| 5 | "project": "./tsconfig.json" |
| 6 | }, |
| 7 | "rules": { |
| 8 | "quotes": ["off", "double", {}], |
| 9 | "@typescript-eslint/naming-convention": "off", |
| 10 | // This is important: when floating promises cause unhandled rejections, the JetBrains binary blows up |
| 11 | "@typescript-eslint/no-floating-promises": "error", |
| 12 | "import/order": "off", |
| 13 | "curly": "off", |
| 14 | "@typescript-eslint/semi": "off", |
| 15 | "eqeqeq": "error", |
| 16 | "complexity": ["error", { "max": 36 }], |
| 17 | "max-lines-per-function": ["error", { "max": 500 }], |
| 18 | "max-statements": ["error", { "max": 108 }], |
| 19 | "max-depth": ["error", { "max": 6 }], |
| 20 | "max-nested-callbacks": ["error", { "max": 4 }], |
| 21 | "max-params": ["error", { "max": 8 }] |
| 22 | }, |
| 23 | "overrides": [ |
| 24 | { |
| 25 | "files": [ |
| 26 | "**/*.test.ts", |
| 27 | "**/*.test.tsx", |
| 28 | "**/*.spec.ts", |
| 29 | "**/*.spec.tsx", |
| 30 | "**/*.vitest.ts" |
| 31 | ], |
| 32 | "rules": { |
| 33 | "max-lines-per-function": "off" |
| 34 | } |
| 35 | } |
| 36 | ] |
| 37 | } |