| 1 | module.exports = { |
| 2 | root: true, |
| 3 | parser: '@typescript-eslint/parser', |
| 4 | plugins: ['@typescript-eslint'], |
| 5 | extends: [ |
| 6 | 'eslint:recommended', |
| 7 | 'plugin:@typescript-eslint/recommended', |
| 8 | 'prettier', |
| 9 | ], |
| 10 | rules: { |
| 11 | '@typescript-eslint/consistent-type-imports': 'error', |
| 12 | '@typescript-eslint/no-duplicate-imports': 'error', |
| 13 | '@typescript-eslint/no-explicit-any': 'off', |
| 14 | '@typescript-eslint/no-non-null-assertion': 'off', |
| 15 | '@typescript-eslint/no-unused-vars': [ |
| 16 | 'error', |
| 17 | { |
| 18 | argsIgnorePattern: '^_', |
| 19 | }, |
| 20 | ], |
| 21 | 'no-constant-condition': 'off', |
| 22 | 'no-unused-labels': 'off', |
| 23 | }, |
| 24 | overrides: [ |
| 25 | { |
| 26 | files: ['test/**/*.test.js'], |
| 27 | env: { |
| 28 | 'mocha': true, |
| 29 | 'node': true, |
| 30 | }, |
| 31 | rules: { |
| 32 | '@typescript-eslint/no-empty-function': 'off', |
| 33 | '@typescript-eslint/no-explicit-any': 'off', |
| 34 | '@typescript-eslint/no-var-requires': 'off', |
| 35 | }, |
| 36 | }, |
| 37 | ], |
| 38 | }; |