|
13 | 13 | "jsx": true |
14 | 14 | }, |
15 | 15 | "ecmaVersion": 2018, |
16 | | - "sourceType": "module" |
| 16 | + "sourceType": "module", |
| 17 | + "project": "./tsconfig.json" |
17 | 18 | }, |
18 | | - "plugins": ["react", "@typescript-eslint", "prettier"], |
| 19 | + "plugins": ["@typescript-eslint", "prettier"], |
19 | 20 | "extends": [ |
20 | | - "plugin:react/recommended", |
21 | | - "airbnb", |
22 | | - "plugin:prettier/recommended", |
23 | | - "plugin:@typescript-eslint/eslint-recommended", |
24 | | - "plugin:@typescript-eslint/recommended" |
| 21 | + "airbnb-typescript", |
| 22 | + "plugin:@typescript-eslint/recommended", |
| 23 | + "prettier", |
| 24 | + "prettier/react", |
| 25 | + "prettier/@typescript-eslint" |
25 | 26 | ], |
26 | 27 | "rules": { |
27 | | - "@typescript-eslint/ban-ts-ignore": "off", |
28 | | - "import/extensions": [ |
29 | | - "error", |
30 | | - "ignorePackages", |
31 | | - { |
32 | | - "js": "never", |
33 | | - "jsx": "never", |
34 | | - "ts": "never", |
35 | | - "tsx": "never" |
36 | | - } |
37 | | - ], |
38 | 28 | "prettier/prettier": "error", |
39 | | - "@typescript-eslint/explicit-function-return-type": "off", |
40 | | - "react/jsx-filename-extension": [ |
41 | | - 1, |
42 | | - { "extensions": [".js", ".jsx", ".ts", ".tsx"] } |
43 | | - ], |
| 29 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
44 | 30 | "jsx-a11y/label-has-associated-control": "off", |
45 | | - "no-param-reassign": [2, { "props": false }], |
46 | 31 | "import/prefer-default-export": "off" |
47 | 32 | }, |
48 | 33 | "overrides": [ |
|
52 | 37 | "react/prop-types": "off" |
53 | 38 | } |
54 | 39 | } |
55 | | - ], |
56 | | - "settings": { |
57 | | - "import/resolver": { |
58 | | - "node": { |
59 | | - "extensions": [".js", ".jsx", ".ts", ".tsx"], |
60 | | - "paths": ["src"] |
61 | | - }, |
62 | | - "typescript": {} |
63 | | - } |
64 | | - } |
| 40 | + ] |
65 | 41 | } |
0 commit comments