Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 69814e1

Browse files
committed
Use exit code of tslint subprocess as exit code of react-scripts lint
1 parent 86fc22a commit 69814e1

File tree

1 file changed

+3
-0
lines changed
  • packages/react-scripts/scripts

1 file changed

+3
-0
lines changed

packages/react-scripts/scripts/lint.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ var args = [
1111
var proc = spawn('tslint', args, {
1212
stdio: 'inherit'
1313
});
14+
proc.on('exit', (code) => {
15+
process.exit(code);
16+
});
1417

1518
// TODO also run eslint

0 commit comments

Comments
 (0)