UNPKG

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