Skip to content

Commit 34f3967

Browse files
Trottjasnell
authored andcommitted
tools: enable no-redeclare rule for linter
PR-URL: #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>
1 parent c14c12e commit 34f3967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ rules:
4848
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
4949
## require falls through comment on switch-case
5050
no-fallthrough: 2
51+
## disallow declaring the same variable more than once
52+
no-redeclare: 2
5153

5254
# Stylistic Issues
5355
# list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues

0 commit comments

Comments
 (0)