Skip to content

Commit b74878d

Browse files
authored
Lint internal scripts with eslint:recommended (facebook#1729)
* Lint internal scripts with eslint:recommended * Warnings r bad
1 parent add3cd7 commit b74878d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/react-scripts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ case 'test':
1414
{stdio: 'inherit'}
1515
);
1616
if (result.signal) {
17-
if (result.signal == 'SIGKILL') {
17+
if (result.signal === 'SIGKILL') {
1818
console.log(
1919
'The build failed because the process exited too early. ' +
2020
'This probably means the system ran out of memory or someone called ' +
2121
'`kill -9` on the process.'
2222
);
23-
} else if (result.signal == 'SIGTERM') {
23+
} else if (result.signal === 'SIGTERM') {
2424
console.log(
2525
'The build failed because the process exited too early. ' +
2626
'Someone might have called `kill` or `killall`, or the system could ' +

fixtures/kitchensink/integration/initDOM.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (process.env.E2E_FILE) {
1515
const markup = fs.readFileSync(file, 'utf8')
1616
getMarkup = () => markup
1717

18-
const pathPrefix = process.env.PUBLIC_URL.replace(/^https?:\/\/[^\/]+\/?/, '')
18+
const pathPrefix = process.env.PUBLIC_URL.replace(/^https?:\/\/[^/]+\/?/, '')
1919

2020
resourceLoader = (resource, callback) => callback(
2121
null,

0 commit comments

Comments
 (0)