|
1 | 1 | {
|
2 |
| - "plugins": ["tailwindcss"], |
3 |
| - "extends": [ |
4 |
| - "@remix-run/eslint-config", |
5 |
| - "@remix-run/eslint-config/node", |
6 |
| - "plugin:tailwindcss/recommended", |
7 |
| - "prettier" |
8 |
| - ], |
9 |
| - "parserOptions": { |
10 |
| - "project": ["./tsconfig.json"] |
11 |
| - }, |
12 |
| - "settings": { |
13 |
| - // Help eslint-plugin-tailwindcss to parse Tailwind classes outside of className |
14 |
| - "tailwindcss": { |
15 |
| - "callees": ["tw"] |
16 |
| - }, |
17 |
| - "jest": { |
18 |
| - "version": 27 |
19 |
| - } |
20 |
| - }, |
21 |
| - "rules": { |
22 |
| - "no-console": "warn", |
23 |
| - "arrow-body-style": ["warn", "as-needed"], |
24 |
| - // @typescript-eslint |
25 |
| - "@typescript-eslint/no-duplicate-imports": "error", |
26 |
| - "@typescript-eslint/consistent-type-imports": "error", |
27 |
| - "@typescript-eslint/no-unused-vars": [ |
28 |
| - "warn", |
29 |
| - { |
30 |
| - "vars": "all", |
31 |
| - "args": "all", |
32 |
| - "argsIgnorePattern": "^_", |
33 |
| - "destructuredArrayIgnorePattern": "^_", |
34 |
| - "ignoreRestSiblings": false |
35 |
| - } |
36 |
| - ], |
37 |
| - //import |
38 |
| - "import/no-cycle": "error", |
39 |
| - "import/no-unresolved": "error", |
40 |
| - "import/no-default-export": "warn", |
41 |
| - "import/order": [ |
42 |
| - "error", |
43 |
| - { |
44 |
| - "groups": ["builtin", "external", "internal"], |
45 |
| - "pathGroups": [ |
46 |
| - { |
47 |
| - "pattern": "react", |
48 |
| - "group": "external", |
49 |
| - "position": "before" |
50 |
| - } |
51 |
| - ], |
52 |
| - "pathGroupsExcludedImportTypes": ["react"], |
53 |
| - "newlines-between": "always", |
54 |
| - "alphabetize": { |
55 |
| - "order": "asc", |
56 |
| - "caseInsensitive": true |
57 |
| - } |
58 |
| - } |
59 |
| - ] |
60 |
| - }, |
61 |
| - "overrides": [ |
62 |
| - { |
63 |
| - "files": [ |
64 |
| - "./app/root.tsx", |
65 |
| - "./app/entry.client.tsx", |
66 |
| - "./app/entry.server.tsx", |
67 |
| - "./app/routes/**/*.tsx" |
68 |
| - ], |
69 |
| - "rules": { |
70 |
| - "import/no-default-export": "off" |
71 |
| - } |
72 |
| - } |
73 |
| - ] |
| 2 | + "plugins": ["tailwindcss"], |
| 3 | + "extends": [ |
| 4 | + "@remix-run/eslint-config", |
| 5 | + "@remix-run/eslint-config/node", |
| 6 | + "plugin:tailwindcss/recommended", |
| 7 | + "prettier" |
| 8 | + ], |
| 9 | + "parserOptions": { |
| 10 | + "project": ["./tsconfig.json"] |
| 11 | + }, |
| 12 | + "settings": { |
| 13 | + // Help eslint-plugin-tailwindcss to parse Tailwind classes outside of className |
| 14 | + "tailwindcss": { |
| 15 | + "callees": ["tw"] |
| 16 | + }, |
| 17 | + "jest": { |
| 18 | + "version": 27 |
| 19 | + } |
| 20 | + }, |
| 21 | + "rules": { |
| 22 | + "no-console": "warn", |
| 23 | + "arrow-body-style": ["warn", "as-needed"], |
| 24 | + // @typescript-eslint |
| 25 | + "@typescript-eslint/no-duplicate-imports": "error", |
| 26 | + "@typescript-eslint/consistent-type-imports": "error", |
| 27 | + "@typescript-eslint/no-unused-vars": [ |
| 28 | + "warn", |
| 29 | + { |
| 30 | + "vars": "all", |
| 31 | + "args": "all", |
| 32 | + "argsIgnorePattern": "^_", |
| 33 | + "destructuredArrayIgnorePattern": "^_", |
| 34 | + "ignoreRestSiblings": false |
| 35 | + } |
| 36 | + ], |
| 37 | + //import |
| 38 | + "import/no-cycle": "error", |
| 39 | + "import/no-unresolved": "error", |
| 40 | + "import/no-default-export": "warn", |
| 41 | + "import/order": [ |
| 42 | + "error", |
| 43 | + { |
| 44 | + "groups": ["builtin", "external", "internal"], |
| 45 | + "pathGroups": [ |
| 46 | + { |
| 47 | + "pattern": "react", |
| 48 | + "group": "external", |
| 49 | + "position": "before" |
| 50 | + } |
| 51 | + ], |
| 52 | + "pathGroupsExcludedImportTypes": ["react"], |
| 53 | + "newlines-between": "always", |
| 54 | + "alphabetize": { |
| 55 | + "order": "asc", |
| 56 | + "caseInsensitive": true |
| 57 | + } |
| 58 | + } |
| 59 | + ] |
| 60 | + }, |
| 61 | + "overrides": [ |
| 62 | + { |
| 63 | + "files": [ |
| 64 | + "./app/root.tsx", |
| 65 | + "./app/entry.client.tsx", |
| 66 | + "./app/entry.server.tsx", |
| 67 | + "./app/routes/**/*.tsx" |
| 68 | + ], |
| 69 | + "rules": { |
| 70 | + "import/no-default-export": "off" |
| 71 | + } |
| 72 | + } |
| 73 | + ] |
74 | 74 | }
|
0 commit comments