Skip to content

Commit 5c54d49

Browse files
Trottrvagg
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 275f6db commit 5c54d49

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
@@ -50,6 +50,8 @@ rules:
5050
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
5151
## require falls through comment on switch-case
5252
no-fallthrough: 2
53+
## disallow declaring the same variable more than once
54+
no-redeclare: 2
5355

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

0 commit comments

Comments
 (0)