Skip to content

Commit 45e82f1

Browse files
fix(node): Отключит правило no-shadow (#80)
* fix(node): Отключит правило no-shadow * fix(node): Поправит файл Readme.md Co-authored-by: kam4atka <sledsib@ya.ru>
1 parent b050e8d commit 45e82f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ $ npm i --save-dev @typescript-eslint/eslint-plugin
9898
"sourceType": "module"
9999
},
100100
"parser": "@typescript-eslint/parser",
101-
"plugins": "@typescript-eslint",
101+
"plugins": ["@typescript-eslint"],
102102
"extends": "htmlacademy/node",
103103
"rules": {
104104
// Additional rules...

node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
// Possible Errors
99
// ------------------------------------------
1010
'no-console': 'off',
11+
'no-shadow': 'off',
1112
'node/handle-callback-err': ['error', "^.*(e|E)rr"],
1213
'node/no-callback-literal': 'error',
1314
'node/no-exports-assign': 'off',
@@ -45,6 +46,7 @@ module.exports = {
4546
'node/prefer-promises/fs': 'error',
4647
// Typescript
4748
// ------------------------------------------
48-
'@typescript-eslint/no-empty-interface': 'off',
49+
'@typescript-eslint/no-empty-interface': 'off',
50+
'@typescript-eslint/no-shadow': 'error'
4951
}
5052
};

0 commit comments

Comments
 (0)