[lint] Make eqeqeq a failure
Paul O’Shannessy committed
Oct 27, 2015 at 15:39 UTC
ad00a6e6725a8ef4fcbaa80e6f4003b90fef79ba
2 files changed
+2
-1
.eslintrc
+1
@@ -18,6 +18,7 @@ rules:
18
dot-location: [2, property]
19
dot-notation: 2
20
eol-last: 2
21
+ eqeqeq: [2, allow-null]
22
indent: [2, 2, {SwitchCase: 1}]
23
jsx-quotes: [2, prefer-double]
24
no-bitwise: 0
scripts/jest/ts-preprocessor.js
+1
-1
@@ -37,7 +37,7 @@ function compile(content, contentFilename) {
37
try {
38
source = fs.readFileSync(filename).toString();
39
} catch (e) {
40
- if (e.code == 'ENOENT') {
40
+ if (e.code === 'ENOENT') {
41
return undefined;
42
}
43
throw e;