From ba6146b361f7b716cc5a097cabb9ca7d4417b7c5 Mon Sep 17 00:00:00 2001 From: Diana Whitten Date: Thu, 27 Aug 2015 16:50:52 -0700 Subject: [PATCH] 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 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 568ee54..4e87770 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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