|
| 1 | +module.exports = { |
| 2 | + env: { es2020: true, node: true }, |
| 3 | + extends: [ |
| 4 | + 'eslint:recommended', |
| 5 | + 'plugin:@typescript-eslint/eslint-recommended', |
| 6 | + 'plugin:@typescript-eslint/recommended', |
| 7 | + 'plugin:typescript-sort-keys/recommended', |
| 8 | + 'prettier', |
| 9 | + 'plugin:prettier/recommended', // should always be at the end |
| 10 | + ], |
| 11 | + parser: '@typescript-eslint/parser', |
| 12 | + parserOptions: { ecmaVersion: 2020 }, |
| 13 | + plugins: [ |
| 14 | + '@typescript-eslint', |
| 15 | + 'prettier', |
| 16 | + 'typescript-sort-keys', |
| 17 | + 'simple-import-sort', |
| 18 | + 'import', |
| 19 | + ], |
| 20 | + rules: { |
| 21 | + '@typescript-eslint/no-empty-function': 'off', |
| 22 | + '@typescript-eslint/no-explicit-any': 'off', |
| 23 | + '@typescript-eslint/no-unsafe-argument': 'off', |
| 24 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 25 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 26 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 27 | + curly: ['error', 'multi-line'], |
| 28 | + eqeqeq: ['error', 'always', { null: 'ignore' }], |
| 29 | + 'no-throw-literal': 'error', |
| 30 | + 'react/prop-types': 'off', |
| 31 | + 'simple-import-sort/exports': 'error', |
| 32 | + 'simple-import-sort/imports': 'error', |
| 33 | + 'sort-keys': ['error', 'asc', { caseSensitive: true, natural: true }], |
| 34 | + }, |
| 35 | + settings: { |
| 36 | + 'import/parsers': { '@typescript-eslint/parser': ['.ts'] }, |
| 37 | + react: { version: 'detect' }, |
| 38 | + }, |
| 39 | +} |
0 commit comments