mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[lint] Make eqeqeq a failure
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user