|
6 | 6 | "extends": [ |
7 | 7 | "plugin:react/recommended", |
8 | 8 | "airbnb", |
9 | | - "plugin:prettier/recommended", |
10 | | - "plugin:@typescript-eslint/eslint-recommended", |
11 | | - "plugin:@typescript-eslint/recommended" |
| 9 | + "plugin:@typescript-eslint/recommended", |
| 10 | + "prettier/@typescript-eslint", |
| 11 | + "plugin:prettier/recommended" |
12 | 12 | ], |
13 | 13 | "globals": { |
14 | 14 | "Atomics": "readonly", |
|
19 | 19 | "ecmaFeatures": { |
20 | 20 | "jsx": true |
21 | 21 | }, |
22 | | - "ecmaVersion": 2018, |
23 | | - "sourceType": "module", |
24 | | - "project": "./tsconfig.json", |
25 | | - |
26 | | - "allowImportExportEverywhere": true, |
27 | | - "tsconfigRootDir": "." |
| 22 | + "ecmaVersion": 11, |
| 23 | + "sourceType": "module" |
28 | 24 | }, |
29 | 25 | "plugins": [ |
30 | 26 | "react", |
|
36 | 32 | "rules": { |
37 | 33 | "prettier/prettier": "error", |
38 | 34 |
|
| 35 | + "class-methods-use-this": "off", |
| 36 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 37 | + "@typescript-eslint/explicit-function-return-type": [ |
| 38 | + "error", |
| 39 | + { |
| 40 | + "allowExpressions": true |
| 41 | + } |
| 42 | + ], |
| 43 | + |
39 | 44 | "react-hooks/rules-of-hooks": "error", |
40 | 45 | "react-hooks/exhaustive-deps": "warn", |
41 | 46 |
|
42 | 47 | "react/prop-types": "off", |
43 | 48 | "react/jsx-props-no-spreading": "off", |
44 | | - "react/jsx-filename-extension": [1, { "extensions": [".tsx"] }], |
45 | | - |
46 | | - "no-unused-expressions": "off", |
47 | | - |
48 | | - "@typescript-eslint/camelcase": "off", |
49 | | - "@typescript-eslint/explicit-function-return-type": [ |
| 49 | + "react/jsx-filename-extension": [ |
50 | 50 | "error", |
51 | 51 | { |
52 | | - "allowExpressions": true |
| 52 | + "extensions": [".tsx"] |
53 | 53 | } |
54 | 54 | ], |
55 | 55 |
|
| 56 | + "no-unused-expressions": "off", |
56 | 57 | "import/prefer-default-export": "off", |
| 58 | + "import/no-duplicates": "off", |
57 | 59 | "import/extensions": [ |
58 | 60 | "error", |
59 | 61 | "ignorePackages", |
|
70 | 72 | "groups": [ |
71 | 73 | "/^(react|styled-components)/", |
72 | 74 | "module", |
73 | | - ["/^~/components/", "/^~/Layout/"], |
74 | | - "/^~/hooks/", |
75 | | - "/^~/contexts/", |
| 75 | + "/^.*components/", |
| 76 | + "/^.*Layout/", |
| 77 | + "/^.*hooks/", |
| 78 | + "/^.*pages/", |
| 79 | + "/^.*service/", |
76 | 80 | ["parent", "sibling", "index"], |
77 | | - "/^~/assets/", |
78 | | - "/^(~|.)/styles/" |
| 81 | + "/^.*assets/", |
| 82 | + "/^.*styles/" |
79 | 83 | ], |
80 | 84 | "alphabetize": { "order": "asc", "ignoreCase": true } |
81 | 85 | } |
82 | 86 | ] |
83 | 87 | }, |
84 | 88 | "settings": { |
85 | | - "import/extensions": ["js", "jsx", ".ts", ".tsx"], |
86 | | - |
87 | 89 | "import/resolver": { |
88 | 90 | "typescript": {} |
89 | 91 | } |
|
0 commit comments