Enable builtinGlobals for no-redeclare

This adds the builtinGlobals flag to the no-redeclare rule, which
will throw errors when known globals - such as Object, Array,
window, document, etc - are used as variable names.

http://eslint.org/docs/rules/no-redeclare

Change-Id: I36b94c69cdb1fbe5f42b99aec06af01205002cf6
This commit is contained in:
Michael Krotscheck 2016-01-11 07:44:25 -08:00
parent c59829bf76
commit d5acf57357
1 changed files with 3 additions and 1 deletions

View File

@ -343,7 +343,9 @@ rules:
# Disallow declaring the same variable more than once
# http://eslint.org/docs/rules/no-redeclare
no-redeclare: 2
no-redeclare:
- 2
- builtinGlobals: true
# Disallow use of assignment in return statement
# http://eslint.org/docs/rules/no-return-assign