tools: enable no-redeclare rule for linter
PR-URL: https://github.com/nodejs/node/pull/5047 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Родитель
c14c12e6ba
Коммит
34f39670cf
|
@ -48,6 +48,8 @@ rules:
|
|||
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
|
||||
## require falls through comment on switch-case
|
||||
no-fallthrough: 2
|
||||
## disallow declaring the same variable more than once
|
||||
no-redeclare: 2
|
||||
|
||||
# Stylistic Issues
|
||||
# list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
|
||||
|
|
Загрузка…
Ссылка в новой задаче