File tree 1 file changed +6
-7
lines changed
packages/eslint-config-react-app
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -66,24 +66,23 @@ module.exports = {
66
66
warnOnUnsupportedTypeScriptVersion : true ,
67
67
} ,
68
68
plugins : [ '@typescript-eslint' ] ,
69
+ // If adding a typescript-eslint version of an existing ESLint rule,
70
+ // make sure to disable the ESLint rule here.
69
71
rules : {
70
- // These ESLint rules are known to cause issues with typescript-eslint
71
- // See https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/recommended.json
72
- camelcase : 'off' ,
73
- indent : 'off' ,
74
- 'no-array-constructor' : 'off' ,
75
- 'no-unused-vars' : 'off' ,
76
-
77
72
'@typescript-eslint/no-angle-bracket-type-assertion' : 'warn' ,
73
+ 'no-array-constructor' : 'off' ,
78
74
'@typescript-eslint/no-array-constructor' : 'warn' ,
79
75
'@typescript-eslint/no-namespace' : 'error' ,
76
+ 'no-unused-vars' : 'off' ,
80
77
'@typescript-eslint/no-unused-vars' : [
81
78
'warn' ,
82
79
{
83
80
args : 'none' ,
84
81
ignoreRestSiblings : true ,
85
82
} ,
86
83
] ,
84
+ 'no-useless-constructor' : 'off' ,
85
+ '@typescript-eslint/no-useless-constructor' : 'warn' ,
87
86
} ,
88
87
} ,
89
88
You can’t perform that action at this time.
0 commit comments