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>
pull/5047/merge
Rich Trott 2016-01-13 16:14:28 -08:00 committed by James M Snell
parent c14c12e6ba
commit 34f39670cf
1 changed files with 2 additions and 0 deletions

View File

@ -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