Skip to content

Commit d06147d

Browse files
committed
[eslint-config] [base] [semver-patch] Allow == null.
Closes #542.
1 parent 2dfd520 commit d06147d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

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

0 commit comments

Comments
 (0)