File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
const eslintConfigTypescript = {
2
2
extends : [
3
- 'plugin:@typescript-eslint/eslint-recommended' ,
4
- 'plugin:@typescript-eslint/recommended' ,
3
+ 'eslint:recommended' ,
4
+ 'plugin:@typescript-eslint/recommended-type-checked' ,
5
+ 'plugin:@typescript-eslint/stylistic-type-checked' ,
5
6
] ,
6
7
parser : '@typescript-eslint/parser' ,
7
8
plugins : [ '@typescript-eslint' ] ,
@@ -39,9 +40,7 @@ const eslintConfigTypescript = {
39
40
} ,
40
41
] ,
41
42
42
- '@typescript-eslint/no-explicit-any' : 'error' ,
43
43
'@typescript-eslint/no-unused-expressions' : 'error' ,
44
- '@typescript-eslint/prefer-optional-chain' : 'error' ,
45
44
'@typescript-eslint/prefer-ts-expect-error' : 'error' ,
46
45
} ,
47
46
overrides : [
@@ -54,6 +53,10 @@ const eslintConfigTypescript = {
54
53
'@typescript-eslint/no-var-requires' : 'off' ,
55
54
} ,
56
55
} ,
56
+ {
57
+ files : [ '*.js' ] ,
58
+ extends : [ 'plugin:@typescript-eslint/disable-type-checked' ] ,
59
+ } ,
57
60
] ,
58
61
} ;
59
62
You can’t perform that action at this time.
0 commit comments