[eslint-config] [base] [semver-patch] Allow == null.

Closes #542.
This commit is contained in:
Jordan Harband
2016-04-19 22:15:39 -07:00
parent 2dfd520930
commit d06147d279

View File

@@ -20,7 +20,8 @@ module.exports = {
// enforces consistent newlines before or after dots
'dot-location': 0,
// require the use of === and !==
'eqeqeq': 2,
// http://eslint.org/docs/rules/eqeqeq
'eqeqeq': [2, 'allow-null'],
// make sure for-in loops have an if statement
'guard-for-in': 2,
// Blacklist certain identifiers to prevent them being used