1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Make linting failures appear as failure

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2023-03-17 10:17:00 +02:00
parent 97d5dfc502
commit 0cbfe3bdf4
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -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 {