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