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;