|
1 | 1 | module.exports = { |
2 | | - parser: '@typescript-eslint/parser', |
3 | | - root: true, |
4 | | - env: { |
5 | | - node: true, |
6 | | - es6: true, |
7 | | - browser: true, |
8 | | - jest: true, |
9 | | - }, |
10 | | - ignorePatterns: ['node_modules/*', 'build/*', 'webpack/*', '!.prettierrc.js'], |
11 | | - parserOptions: { |
12 | | - ecmaVersion: 2020, |
13 | | - sourceType: 'module', |
14 | | - }, |
15 | | - settings: { |
16 | | - react: { |
17 | | - version: 'detect', |
18 | | - }, |
19 | | - }, |
20 | | - extends: [ |
21 | | - 'plugin:react/recommended', |
22 | | - 'plugin:react-hooks/recommended', |
23 | | - 'plugin:@typescript-eslint/recommended', |
24 | | - 'plugin:import/errors', |
25 | | - 'plugin:import/warnings', |
26 | | - 'plugin:import/typescript', |
27 | | - 'plugin:jsx-a11y/recommended', |
28 | | - 'plugin:eslint-comments/recommended', |
29 | | - 'plugin:prettier/recommended', |
30 | | - ], |
31 | | - rules: { |
32 | | - 'no-unused-vars': 'off', |
33 | | - '@typescript-eslint/no-unused-vars': ['error'], |
34 | | - '@typescript-eslint/no-var-requires': 'off', |
35 | | - 'react/prop-types': 'off', |
36 | | - 'react/jsx-uses-react': 'off', |
37 | | - 'react/react-in-jsx-scope': 'off', |
38 | | - '@typescript-eslint/explicit-module-boundary-types': 'off', |
39 | | - 'prettier/prettier': ['error', {}, { usePrettierrc: true }], |
40 | | - 'import/extensions': 'off', |
41 | | - 'import/no-unresolved': 'error', |
42 | | - 'import/order': [ |
43 | | - 'error', |
44 | | - { |
45 | | - groups: [ |
46 | | - 'builtin', |
47 | | - 'external', |
48 | | - 'internal', |
49 | | - ['parent', 'sibling', 'object', 'index'], |
50 | | - ], |
51 | | - pathGroups: [ |
52 | | - { |
53 | | - pattern: 'react', |
54 | | - group: 'external', |
55 | | - position: 'before', |
56 | | - }, |
57 | | - ], |
58 | | - pathGroupsExcludedImportTypes: ['react'], |
59 | | - 'newlines-between': 'never', |
60 | | - alphabetize: { |
61 | | - order: 'asc', |
62 | | - caseInsensitive: true, |
63 | | - }, |
64 | | - }, |
65 | | - ], |
66 | | - }, |
| 2 | + parser: '@typescript-eslint/parser', |
| 3 | + root: true, |
| 4 | + env: { |
| 5 | + node: true, |
| 6 | + es6: true, |
| 7 | + browser: true, |
| 8 | + jest: true, |
| 9 | + }, |
| 10 | + ignorePatterns: ['node_modules/*', 'build/*', 'webpack/*', '!.prettierrc.js'], |
| 11 | + parserOptions: { |
| 12 | + ecmaVersion: 2020, |
| 13 | + sourceType: 'module', |
| 14 | + }, |
| 15 | + settings: { |
| 16 | + react: { |
| 17 | + version: 'detect', |
| 18 | + }, |
| 19 | + }, |
| 20 | + extends: [ |
| 21 | + 'plugin:react/recommended', |
| 22 | + 'plugin:react-hooks/recommended', |
| 23 | + 'plugin:@typescript-eslint/recommended', |
| 24 | + 'plugin:import/errors', |
| 25 | + 'plugin:import/warnings', |
| 26 | + 'plugin:import/typescript', |
| 27 | + 'plugin:jsx-a11y/recommended', |
| 28 | + 'plugin:eslint-comments/recommended', |
| 29 | + // "prettier/@typescript-eslint", |
| 30 | + // "plugin:prettier/recommended", |
| 31 | + ], |
| 32 | + rules: { |
| 33 | + 'no-unused-vars': 'off', |
| 34 | + '@typescript-eslint/no-unused-vars': ['error'], |
| 35 | + '@typescript-eslint/no-var-requires': 'off', |
| 36 | + 'react/prop-types': 'off', |
| 37 | + 'react/jsx-uses-react': 'off', |
| 38 | + 'react/react-in-jsx-scope': 'off', |
| 39 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 40 | + }, |
67 | 41 | } |
0 commit comments