|
| 1 | +"use strict"; |
| 2 | +module.exports = { |
| 3 | + env: { |
| 4 | + node: true, |
| 5 | + browser: true, |
| 6 | + es6: true, |
| 7 | + }, |
| 8 | + parser: '@typescript-eslint/parser', |
| 9 | + extends: [ |
| 10 | + 'eslint:recommended', |
| 11 | + 'plugin:import/errors', |
| 12 | + 'plugin:import/warnings', |
| 13 | + 'plugin:import/typescript', |
| 14 | + 'plugin:@typescript-eslint/recommended', |
| 15 | + 'plugin:jsx-a11y/recommended', |
| 16 | + 'plugin:react/recommended', |
| 17 | + 'plugin:react-hooks/recommended', |
| 18 | + 'plugin:prettier/recommended', |
| 19 | + ], |
| 20 | + plugins: ['simple-import-sort'], |
| 21 | + rules: { |
| 22 | + 'simple-import-sort/imports': 1, |
| 23 | + 'simple-import-sort/exports': 1, |
| 24 | + 'sort-imports': 0, |
| 25 | + 'import/order': 0, |
| 26 | + '@typescript-eslint/no-var-requires': 0, |
| 27 | + '@typescript-eslint/no-non-null-assertion': 0, |
| 28 | + '@typescript-eslint/no-use-before-define': 2, |
| 29 | + '@typescript-eslint/explicit-module-boundary-types': 0, |
| 30 | + '@typescript-eslint/consistent-type-imports': [ |
| 31 | + 2, |
| 32 | + { |
| 33 | + prefer: 'type-imports', |
| 34 | + disallowTypeAnnotations: true, |
| 35 | + }, |
| 36 | + ], |
| 37 | + 'react/jsx-sort-props': [ |
| 38 | + 2, |
| 39 | + { |
| 40 | + callbacksLast: true, |
| 41 | + shorthandFirst: true, |
| 42 | + shorthandLast: false, |
| 43 | + ignoreCase: false, |
| 44 | + noSortAlphabetically: false, |
| 45 | + reservedFirst: true, |
| 46 | + }, |
| 47 | + ], |
| 48 | + }, |
| 49 | +}; |
0 commit comments