File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ $ npm i --save-dev @typescript-eslint/eslint-plugin
98
98
"sourceType" : " module"
99
99
},
100
100
"parser" : " @typescript-eslint/parser" ,
101
- "plugins" : " @typescript-eslint" ,
101
+ "plugins" : [ " @typescript-eslint" ] ,
102
102
"extends" : " htmlacademy/node" ,
103
103
"rules" : {
104
104
// Additional rules...
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module.exports = {
8
8
// Possible Errors
9
9
// ------------------------------------------
10
10
'no-console' : 'off' ,
11
+ 'no-shadow' : 'off' ,
11
12
'node/handle-callback-err' : [ 'error' , "^.*(e|E)rr" ] ,
12
13
'node/no-callback-literal' : 'error' ,
13
14
'node/no-exports-assign' : 'off' ,
@@ -45,6 +46,7 @@ module.exports = {
45
46
'node/prefer-promises/fs' : 'error' ,
46
47
// Typescript
47
48
// ------------------------------------------
48
- '@typescript-eslint/no-empty-interface' : 'off' ,
49
+ '@typescript-eslint/no-empty-interface' : 'off' ,
50
+ '@typescript-eslint/no-shadow' : 'error'
49
51
}
50
52
} ;
You can’t perform that action at this time.
0 commit comments