Enable no-undefined

Disallow Use of undefined Variable (no-undefined)

The undefined variable is unique in JavaScript because it is
actually a property of the global object. As such, in ECMAScript 3
it was possible to overwrite the value of undefined. While
ECMAScript 5 disallows overwriting undefined, it's still possible
to shadow undefined

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

Change-Id: I49bc0c26c19cbb7f12810066bdb8afc292c814bf
This commit is contained in:
Diana Whitten 2015-08-27 16:50:52 -07:00
parent 2c5d458d93
commit ba6146b361
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ rules:
# Disallow use of undefined variable
# http://eslint.org/docs/rules/no-undefined
no-undefined: 0 # TODO(krotscheck): Discuss & Activate
no-undefined: 2
# Disallow declaration of variables that are not used in the code
# http://eslint.org/docs/rules/no-unused-vars