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:
Rich Trott 2016-01-13 16:14:28 -08:00 коммит произвёл James M Snell
Родитель c14c12e6ba
Коммит 34f39670cf
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -48,6 +48,8 @@ rules:
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
## require falls through comment on switch-case ## require falls through comment on switch-case
no-fallthrough: 2 no-fallthrough: 2
## disallow declaring the same variable more than once
no-redeclare: 2
# Stylistic Issues # Stylistic Issues
# list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues