|
1 | 1 | {
|
| 2 | + "root": true, |
2 | 3 | "parser": "@typescript-eslint/parser",
|
3 | | - "parserOptions": { |
4 | | - "ecmaVersion": 2018, |
5 | | - "sourceType": "module", |
6 | | - "ecmaFeatures": { |
7 | | - "jsx": true |
8 | | - } |
9 | | - }, |
10 | | - "plugins": ["@typescript-eslint", "react-hooks"], |
| 4 | + "plugins": ["@typescript-eslint"], |
11 | 5 | "extends": [
|
12 | | - "plugin:react/recommended", |
13 | | - "plugin:@typescript-eslint/recommended" |
| 6 | + "eslint:recommended", |
| 7 | + "plugin:@typescript-eslint/recommended", |
| 8 | + "prettier" |
14 | 9 | ],
|
15 | | - "rules": { |
16 | | - "react-hooks/rules-of-hooks": "error", |
17 | | - "react-hooks/exhaustive-deps": "warn", |
18 | | - "react/prop-types": "off", |
19 | | - "valid-typeof": "error", |
20 | | - "semi": "off", |
21 | | - "no-console": "warn", |
22 | | - "no-var": "error", |
23 | | - "prefer-const": "error", |
24 | | - "eqeqeq": "error", |
25 | | - "keyword-spacing": "warn", |
26 | | - "space-before-function-paren": "off", |
27 | | - "space-infix-ops": "warn", |
28 | | - "comma-spacing": "warn", |
29 | | - "brace-style": "warn", |
30 | | - "curly": "error", |
31 | | - "handle-callback-err": "error", |
32 | | - "no-multi-spaces": "warn", |
33 | | - "no-multiple-empty-lines": "warn", |
34 | | - "operator-linebreak": "error", |
35 | | - "block-spacing": "warn", |
36 | | - "comma-dangle": "warn", |
37 | | - "comma-style": "warn", |
38 | | - "dot-location": ["error", "property"], |
39 | | - "key-spacing": "warn", |
40 | | - "no-const-assign": "error", |
41 | | - "no-constant-condition": "error", |
42 | | - "no-debugger": "error", |
43 | | - "no-delete-var": "error", |
44 | | - "no-dupe-args": "error", |
45 | | - "no-dupe-class-members": "error", |
46 | | - "no-duplicate-case": "error", |
47 | | - "no-duplicate-imports": "error", |
48 | | - "no-empty-pattern": "warn", |
49 | | - "no-fallthrough": "warn", |
50 | | - "no-lone-blocks": "warn", |
51 | | - "no-redeclare": "error", |
52 | | - "no-unmodified-loop-condition": "error", |
53 | | - "no-unneeded-ternary": "error", |
54 | | - "no-unreachable": "error", |
55 | | - "no-useless-computed-key": "error", |
56 | | - "no-useless-rename": "warn", |
57 | | - "no-whitespace-before-property": "error", |
58 | | - "semi-spacing": "warn", |
59 | | - "space-before-blocks": "warn", |
60 | | - "space-unary-ops": "warn", |
61 | | - "spaced-comment": "warn", |
62 | | - "use-isnan": "error", |
63 | | - "yoda": "error", |
64 | | - "no-tabs": "warn" |
65 | | - }, |
66 | 10 | "settings": {
|
67 | | - "react": { |
68 | | - "pragma": "React", |
69 | | - "version": "detect" |
| 11 | + "import/extensions": [".js", ".jsx", ".ts", ".tsx"], |
| 12 | + "import/parsers": { |
| 13 | + "@typescript-eslint/parser": [".ts", ".tsx"] |
| 14 | + }, |
| 15 | + "import/resolver": { |
| 16 | + "node": { |
| 17 | + "extensions": [".js", ".jsx", ".ts", ".tsx"] |
| 18 | + } |
70 | 19 | }
|
71 | 20 | }
|
72 | 21 | }
|
0 commit comments