|
3 | 3 | "parser": "@typescript-eslint/parser", |
4 | 4 | "parserOptions": { |
5 | 5 | "ecmaVersion": 6, |
6 | | - "sourceType": "module" |
| 6 | + "sourceType": "module", |
| 7 | + "project": "./tsconfig.json" |
7 | 8 | }, |
8 | 9 | "plugins": ["@typescript-eslint"], |
9 | 10 | "rules": { |
10 | | - "@typescript-eslint/naming-convention": [ |
11 | | - "warn", |
12 | | - { |
13 | | - "selector": "import", |
14 | | - "format": ["camelCase", "PascalCase"] |
15 | | - } |
16 | | - ], |
| 11 | + "no-var": "error", |
| 12 | + "no-unused-vars": "off", |
| 13 | + "@typescript-eslint/no-unused-vars": "warn", |
| 14 | + "@typescript-eslint/no-explicit-any": "warn", |
| 15 | + "@typescript-eslint/no-misused-promises": "error", |
| 16 | + "@typescript-eslint/await-thenable": "warn", |
| 17 | + "@typescript-eslint/return-await": "error", |
| 18 | + "@typescript-eslint/explicit-function-return-type": "warn", |
17 | 19 | "@typescript-eslint/semi": "off", |
18 | 20 | "eqeqeq": "warn", |
19 | 21 | "no-throw-literal": "warn", |
20 | 22 | "semi": "off" |
21 | 23 | }, |
22 | | - "ignorePatterns": ["out", "dist", "**/*.d.ts"] |
| 24 | + "ignorePatterns": ["out", "dist", "**/*.d.ts", "jest.*.js"], |
| 25 | + "overrides": [ |
| 26 | + { |
| 27 | + "files": ["webview-ui/src/**/*.tsx"], |
| 28 | + "parserOptions": { |
| 29 | + "project": "./webview-ui/tsconfig.json" |
| 30 | + } |
| 31 | + } |
| 32 | + ] |
23 | 33 | } |
0 commit comments