Skip to content

Commit 764eab3

Browse files
committed
run prettier
1 parent a937d83 commit 764eab3

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

lib/configs/flat/typescript.js

+21-26
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
1-
const eslint = require('@eslint/js')
21
const tseslint = require('typescript-eslint')
32
const escompat = require('eslint-plugin-escompat')
43
const github = require('../../plugin')
54
const {fixupPluginRules} = require('@eslint/compat')
65

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,
319
},
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

Comments
 (0)