Lint internal scripts with eslint:recommended (#1729)

* Lint internal scripts with eslint:recommended

* Warnings r bad
This commit is contained in:
Dan Abramov
2017-03-05 22:29:28 +00:00
committed by GitHub
parent df3ca8e614
commit 2f7e3a2168
13 changed files with 45 additions and 13 deletions

View File

@@ -14,13 +14,13 @@ case 'test':
{stdio: 'inherit'}
);
if (result.signal) {
if (result.signal == 'SIGKILL') {
if (result.signal === 'SIGKILL') {
console.log(
'The build failed because the process exited too early. ' +
'This probably means the system ran out of memory or someone called ' +
'`kill -9` on the process.'
);
} else if (result.signal == 'SIGTERM') {
} else if (result.signal === 'SIGTERM') {
console.log(
'The build failed because the process exited too early. ' +
'Someone might have called `kill` or `killall`, or the system could ' +