|
1 | 1 | {
|
2 | 2 | "root": true,
|
3 |
| - "env": { |
4 |
| - "browser": true, |
5 |
| - "es2021": true |
6 |
| - }, |
7 | 3 | "extends": [
|
| 4 | + "eslint:recommended", |
| 5 | + "plugin:@typescript-eslint/recommended", |
| 6 | + "plugin:react/recommended", |
8 | 7 | "plugin:react/jsx-runtime",
|
9 |
| - "plugin:jsx-a11y/recommended", |
10 | 8 | "plugin:react-hooks/recommended",
|
11 |
| - "react-app", |
| 9 | + "plugin:jsx-a11y/recommended", |
12 | 10 | "plugin:prettier/recommended"
|
13 | 11 | ],
|
14 |
| - "ignorePatterns": ["**/node_modules", "**/dist", "**/build"], |
15 |
| - "parser": "@typescript-eslint/parser", |
16 |
| - "parserOptions": { |
17 |
| - "requireConfigFile": false, |
18 |
| - "ecmaFeatures": { |
19 |
| - "experimentalObjectRestSpread": true, |
20 |
| - "impliedStrict": true |
21 |
| - }, |
22 |
| - "ecmaVersion": 12 |
| 12 | + "settings": { |
| 13 | + "react": { |
| 14 | + "version": "detect" |
| 15 | + } |
23 | 16 | },
|
24 |
| - "plugins": ["react"], |
| 17 | + "parser": "@typescript-eslint/parser", |
| 18 | + "ignorePatterns": ["**/node_modules", "**/dist", "**/build"], |
25 | 19 | "rules": {
|
26 |
| - "react/jsx-filename-extension": 0, |
27 |
| - "no-param-reassign": 0, |
28 |
| - "react/prop-types": 1, |
29 |
| - "react/require-default-props": 0, |
30 |
| - "react/no-array-index-key": 0, |
31 |
| - "react/jsx-props-no-spreading": 0, |
32 |
| - "react/forbid-prop-types": 0, |
33 |
| - "import/order": 0, |
34 |
| - "no-console": 0, |
35 |
| - "jsx-a11y/anchor-is-valid": 0, |
36 |
| - "prefer-destructuring": 0, |
37 |
| - "no-underscore-dangle": 0, |
38 |
| - "no-shadow": 0, |
39 |
| - "import/no-anonymous-default-export": 0, |
40 |
| - "no-unused-vars": [ |
41 |
| - 1, |
42 |
| - { |
43 |
| - "ignoreRestSiblings": false |
44 |
| - } |
45 |
| - ], |
| 20 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 21 | + "no-unused-vars": "off", |
| 22 | + "@typescript-eslint/no-unused-vars": "warn", |
| 23 | + "no-undef": "off", |
| 24 | + "no-console": "warn", |
46 | 25 | "prettier/prettier": ["error"]
|
47 | 26 | }
|
48 | 27 | }
|
0 commit comments