From 087eeda6161b2fd666e4371b46caba07fef8671d Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sat, 6 Feb 2016 00:39:32 -0800 Subject: [PATCH] RN: Allow `X == null` in ESLint Reviewed By: voideanvalue Differential Revision: D2908714 fb-gh-sync-id: a5f382fb3a71517fdab4c809311e78323e284fd9 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 612fdaf40..8c33d4d38 100644 --- a/.eslintrc +++ b/.eslintrc @@ -107,7 +107,7 @@ "curly": 1, // specify curly brace conventions for all control statements "default-case": 0, // require default case in switch statements (off by default) "dot-notation": 1, // encourages use of dot notation whenever possible - "eqeqeq": 1, // require the use of === and !== + "eqeqeq": [1, "allow-null"], // require the use of === and !== "guard-for-in": 0, // make sure for-in loops have an if statement (off by default) "no-alert": 1, // disallow the use of alert, confirm, and prompt "no-caller": 1, // disallow use of arguments.caller or arguments.callee