From ad00a6e6725a8ef4fcbaa80e6f4003b90fef79ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 27 Oct 2015 15:39:54 -0700 Subject: [PATCH] [lint] Make eqeqeq a failure --- .eslintrc | 1 + scripts/jest/ts-preprocessor.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index ed6e9c70c0..e3cb38fac0 100644 --- a/.eslintrc +++ b/.eslintrc @@ -18,6 +18,7 @@ rules: dot-location: [2, property] dot-notation: 2 eol-last: 2 + eqeqeq: [2, allow-null] indent: [2, 2, {SwitchCase: 1}] jsx-quotes: [2, prefer-double] no-bitwise: 0 diff --git a/scripts/jest/ts-preprocessor.js b/scripts/jest/ts-preprocessor.js index bed9f1c4d2..706e787fa9 100644 --- a/scripts/jest/ts-preprocessor.js +++ b/scripts/jest/ts-preprocessor.js @@ -37,7 +37,7 @@ function compile(content, contentFilename) { try { source = fs.readFileSync(filename).toString(); } catch (e) { - if (e.code == 'ENOENT') { + if (e.code === 'ENOENT') { return undefined; } throw e;