Make linting failures appear as failure

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2023-03-21 09:28:20 +02:00
1 parent 97d5dfc502
commit 0cbfe3bdf4
1 file changed
+3 -1
@@ -8,7 +8,9 @@ const shouldDoTheFix = argv.includes('--fix');
try {
execSync(`eslint ${shouldDoTheFix ? "--fix " : " "}--ext ts,tsx --max-warnings=0 .`);
} catch (error) {
console.log(error.stdout.toString());
console.error(error.stdout.toString());
process.exit(1);
}
try {