|
1 |
| -const eslint = require('@eslint/js') |
2 | 1 | const tseslint = require('typescript-eslint')
|
3 | 2 | const escompat = require('eslint-plugin-escompat')
|
4 | 3 | const github = require('../../plugin')
|
5 | 4 | const {fixupPluginRules} = require('@eslint/compat')
|
6 | 5 |
|
7 |
| -module.exports = tseslint.config( |
8 |
| - ...tseslint.configs.recommended, |
9 |
| - ...escompat.configs['flat/typescript-2020'], |
10 |
| - { |
11 |
| - languageOptions: { |
12 |
| - parser: tseslint.parser, |
13 |
| - }, |
14 |
| - plugins: {'@typescript-eslint': tseslint.plugin, escompat, github: fixupPluginRules(github)}, |
15 |
| - rules: { |
16 |
| - camelcase: 'off', |
17 |
| - 'no-unused-vars': 'off', |
18 |
| - 'no-shadow': 'off', |
19 |
| - 'no-invalid-this': 'off', |
20 |
| - '@typescript-eslint/no-invalid-this': ['error'], |
21 |
| - '@typescript-eslint/no-shadow': ['error'], |
22 |
| - '@typescript-eslint/interface-name-prefix': 'off', |
23 |
| - '@typescript-eslint/array-type': ['error', {default: 'array-simple'}], |
24 |
| - '@typescript-eslint/no-use-before-define': 'off', |
25 |
| - '@typescript-eslint/explicit-member-accessibility': 'off', |
26 |
| - '@typescript-eslint/explicit-function-return-type': 'off', |
27 |
| - '@typescript-eslint/no-non-null-assertion': 'off', |
28 |
| - '@typescript-eslint/no-unused-vars': 'error', |
29 |
| - '@typescript-eslint/explicit-module-boundary-types': 'off', |
30 |
| - }, |
| 6 | +module.exports = tseslint.config(...tseslint.configs.recommended, ...escompat.configs['flat/typescript-2020'], { |
| 7 | + languageOptions: { |
| 8 | + parser: tseslint.parser, |
31 | 9 | },
|
32 |
| -) |
| 10 | + plugins: {'@typescript-eslint': tseslint.plugin, escompat, github: fixupPluginRules(github)}, |
| 11 | + rules: { |
| 12 | + camelcase: 'off', |
| 13 | + 'no-unused-vars': 'off', |
| 14 | + 'no-shadow': 'off', |
| 15 | + 'no-invalid-this': 'off', |
| 16 | + '@typescript-eslint/no-invalid-this': ['error'], |
| 17 | + '@typescript-eslint/no-shadow': ['error'], |
| 18 | + '@typescript-eslint/interface-name-prefix': 'off', |
| 19 | + '@typescript-eslint/array-type': ['error', {default: 'array-simple'}], |
| 20 | + '@typescript-eslint/no-use-before-define': 'off', |
| 21 | + '@typescript-eslint/explicit-member-accessibility': 'off', |
| 22 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 23 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 24 | + '@typescript-eslint/no-unused-vars': 'error', |
| 25 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 26 | + }, |
| 27 | +}) |
0 commit comments