|
1 | 1 | { |
| 2 | + "root": true, |
2 | 3 | "parser": "@typescript-eslint/parser", |
3 | 4 | "plugins": ["@typescript-eslint", "import"], |
4 | 5 | "extends": [ |
|
12 | 13 | "es6": true |
13 | 14 | }, |
14 | 15 | "parserOptions": { |
15 | | - "project": "./tsconfig.json", |
| 16 | + "project": "./tsconfig.base.json", |
16 | 17 | "sourceType": "module" |
17 | 18 | }, |
| 19 | + "settings": { |
| 20 | + "import/parsers": { |
| 21 | + "@typescript-eslint/parser": [".ts", ".tsx"] |
| 22 | + }, |
| 23 | + "import/resolver": { |
| 24 | + "node": true, |
| 25 | + "typescript": { |
| 26 | + "project": "packages/*/tsconfig.json" |
| 27 | + } |
| 28 | + }, |
| 29 | + "react": { |
| 30 | + "version": "detect" |
| 31 | + } |
| 32 | + }, |
18 | 33 | "rules": { |
19 | 34 | "react/jsx-key": ["error", { "checkFragmentShorthand": true }], |
20 | 35 | "@typescript-eslint/ban-types": "off", |
|
32 | 47 | ], |
33 | 48 | "no-shadow": "error", |
34 | 49 | "import/no-cycle": "error", |
35 | | - "import/no-unresolved": ["error", { "ignore": ["react-query"] }], |
| 50 | + "import/no-unresolved": ["error", { "ignore": ["^@tanstack\/"] }], |
36 | 51 | "import/no-unused-modules": ["off", { "unusedExports": true }], |
37 | | - "import/no-restricted-paths": [ |
38 | | - "error", |
39 | | - { |
40 | | - "zones": [ |
41 | | - { "target": "src/core", "from": "src/broadcastQueryClient-experimental" }, |
42 | | - { "target": "src/core", "from": "src/createAsyncStoragePersister" }, |
43 | | - { "target": "src/core", "from": "src/createWebStoragePersister" }, |
44 | | - { "target": "src/core", "from": "src/devtools" }, |
45 | | - { "target": "src/core", "from": "src/persistQueryClient" }, |
46 | | - { "target": "src/core", "from": "src/reactjs" } |
47 | | - ] |
48 | | - } |
49 | | - ], |
50 | 52 | "no-redeclare": "off" |
51 | 53 | } |
52 | 54 | } |
0 commit comments