Disable no-undefined

This disables the no-undefined rule. Most JavaScript projects in
OpenStack, at this point, have adopted eslint-config-angular, which
declares the 'definedundefined' rule requiring angular.isDefined()
or angular.isUndefined() to handle this case. That makes this
rule redundant, while also forcing non-production pieces of code
(such as unit tests) to become unnecessarily verbose.

https://github.com/Gillespie59/eslint-plugin-angular/blob/master/docs/definedundefined.md
http://eslint.org/docs/rules/no-undefined

Change-Id: I35ae5c8bc9e7ebb5c455d4acbe79636653448f65
This commit is contained in:
Michael Krotscheck 2016-01-04 10:19:50 -08:00
parent a04b328444
commit a7c3268b79
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ rules:
# Disallow use of undefined variable
# http://eslint.org/docs/rules/no-undefined
no-undefined: 2
no-undefined: 0
# Disallow declaration of variables that are not used in the code
# http://eslint.org/docs/rules/no-unused-vars