mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
It already gets ran as eslint-plugin. Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
15 lines
324 B
JavaScript
Executable File
15 lines
324 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
const execSync = require("child_process").execSync;
|
|
|
|
const argv = process.argv
|
|
|
|
const shouldDoTheFix = argv.includes('--fix');
|
|
|
|
try {
|
|
execSync(`eslint ${shouldDoTheFix ? "--fix " : " "}--ext ts,tsx --max-warnings=0 .`);
|
|
} catch (error) {
|
|
console.error(error.stdout.toString());
|
|
|
|
process.exit(1);
|
|
}
|