|
1 | 1 | module.exports = { |
2 | | -parser: '@typescript-eslint/parser', |
3 | | -extends: [ |
4 | | -'eslint:recommended', |
5 | | -'@typescript-eslint/recommended', |
6 | | -], |
7 | | -plugins: ['@typescript-eslint'], |
8 | | -parserOptions: { |
9 | | -ecmaVersion: 2020, |
10 | | -sourceType: 'module', |
11 | | -project: './tsconfig.json', |
12 | | -}, |
13 | | -rules: { |
14 | | -'@typescript-eslint/no-unused-vars': 'error', |
15 | | -'@typescript-eslint/no-explicit-any': 'warn', |
16 | | -'@typescript-eslint/explicit-function-return-type': 'off', |
17 | | -'@typescript-eslint/explicit-module-boundary-types': 'off', |
18 | | -'@typescript-eslint/no-non-null-assertion': 'warn', |
19 | | -'prefer-const': 'error', |
20 | | -'no-var': 'error', |
21 | | -'no-console': 'warn', |
22 | | -}, |
23 | | -env: { |
24 | | -node: true, |
25 | | -es6: true, |
26 | | -jest: true, |
27 | | -}, |
| 2 | + parser: '@typescript-eslint/parser', |
| 3 | + extends: [ |
| 4 | + 'eslint:recommended', |
| 5 | + 'plugin:@typescript-eslint/recommended', |
| 6 | + ], |
| 7 | + plugins: ['@typescript-eslint'], |
| 8 | + parserOptions: { |
| 9 | + ecmaVersion: 2020, |
| 10 | + sourceType: 'module', |
| 11 | + project: './tsconfig.eslint.json', |
| 12 | + }, |
| 13 | + rules: { |
| 14 | + '@typescript-eslint/no-unused-vars': 'error', |
| 15 | + '@typescript-eslint/no-explicit-any': 'warn', |
| 16 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 17 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 18 | + '@typescript-eslint/no-non-null-assertion': 'warn', |
| 19 | + 'prefer-const': 'error', |
| 20 | + 'no-var': 'error', |
| 21 | + 'no-console': 'warn', |
| 22 | + }, |
| 23 | + env: { |
| 24 | + node: true, |
| 25 | + es6: true, |
| 26 | + jest: true, |
| 27 | + }, |
28 | 28 | }; |
0 commit comments