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:
parent
97d5dfc502
commit
0cbfe3bdf4
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user