1 | import { execute } from './helpers/shell.helpers';
|
2 | import { parseFlags } from './helpers/utility.helpers';
|
3 |
|
4 | const defaultOptionsFn = () => ({
|
5 | fix: false
|
6 | });
|
7 |
|
8 | const options = parseFlags(process.argv.slice(2), defaultOptionsFn);
|
9 |
|
10 | (async () => {
|
11 | await execute(`tslint --project ./tsconfig.lint.json ${options.fix ? '--fix' : ''}`);
|
12 | })();
|