Skip to content

Commit 0ca23a4

Browse files
author
spalger
committed
[tslint] use exitCode 1 when linter errors
1 parent d4d5fe1 commit 0ca23a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dev/tslint/run_tslint_cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ export function runTslintCli() {
7070
);
7171

7272
list.run().catch((error: any) => {
73+
process.exitCode = 1;
74+
7375
if (!error.errors) {
7476
log.error('Unhandled execption!');
7577
log.error(error);
76-
process.exit(1);
78+
process.exit();
7779
}
7880

7981
for (const e of error.errors) {

0 commit comments

Comments
 (0)