Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(async () => {
let dir = process.cwd();
program
.version((await fs.readJson(path.resolve(__dirname, '../package.json'))).version)
.arguments('[cwd]')
.action((cwd) => { dir = workingDir(dir, cwd); })
.parse(process.argv);
await api.lint({
dir,
interactive: true,
});
})();