|
1 | 1 | { |
2 | 2 | "root": true, |
3 | | - "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], |
4 | 3 | "parser": "@typescript-eslint/parser", |
5 | 4 | "parserOptions": { |
6 | | - "ecmaVersion": 2021, |
7 | | - "sourceType": "module", |
8 | | - "project": "./tsconfig.json" |
| 5 | + "ecmaVersion": 6, |
| 6 | + "sourceType": "module" |
9 | 7 | }, |
10 | 8 | "plugins": ["@typescript-eslint"], |
11 | 9 | "rules": { |
12 | | - "@typescript-eslint/naming-convention": ["warn"], |
13 | | - "@typescript-eslint/no-explicit-any": "off", |
14 | | - "@typescript-eslint/no-unused-vars": [ |
| 10 | + "@typescript-eslint/naming-convention": [ |
15 | 11 | "warn", |
16 | 12 | { |
17 | | - "argsIgnorePattern": "^_", |
18 | | - "varsIgnorePattern": "^_", |
19 | | - "caughtErrorsIgnorePattern": "^_" |
| 13 | + "selector": "import", |
| 14 | + "format": ["camelCase", "PascalCase"] |
20 | 15 | } |
21 | 16 | ], |
22 | | - "@typescript-eslint/explicit-function-return-type": [ |
23 | | - "warn", |
24 | | - { |
25 | | - "allowExpressions": true, |
26 | | - "allowTypedFunctionExpressions": true |
27 | | - } |
28 | | - ], |
29 | | - "@typescript-eslint/explicit-member-accessibility": [ |
30 | | - "warn", |
31 | | - { |
32 | | - "accessibility": "explicit" |
33 | | - } |
34 | | - ], |
35 | | - "@typescript-eslint/no-non-null-assertion": "warn", |
| 17 | + "@typescript-eslint/semi": "off", |
| 18 | + "eqeqeq": "warn", |
36 | 19 | "no-throw-literal": "warn", |
37 | | - "semi": ["off", "always"], |
38 | | - "quotes": ["warn", "double", { "avoidEscape": true }], |
39 | | - "@typescript-eslint/ban-types": "off", |
40 | | - "@typescript-eslint/no-var-requires": "warn", |
41 | | - "no-extra-semi": "warn", |
42 | | - "prefer-const": "warn", |
43 | | - "no-mixed-spaces-and-tabs": "warn", |
44 | | - "no-case-declarations": "warn", |
45 | | - "no-useless-escape": "warn", |
46 | | - "require-yield": "warn", |
47 | | - "no-empty": "warn", |
48 | | - "no-control-regex": "warn", |
49 | | - "@typescript-eslint/ban-ts-comment": "warn" |
50 | | - }, |
51 | | - "env": { |
52 | | - "node": true, |
53 | | - "es2021": true |
| 20 | + "semi": "off", |
| 21 | + "react-hooks/exhaustive-deps": "off" |
54 | 22 | }, |
55 | | - "ignorePatterns": ["dist/**", "out/**", "webview-ui/**", "**/*.js"] |
| 23 | + "ignorePatterns": ["out", "dist", "**/*.d.ts"] |
56 | 24 | } |
0 commit comments