Skip to content

Commit

Permalink
Merge branch 'main' into renovate/node-20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbankhead authored Sep 29, 2023
2 parents 6991746 + 5dc2a76 commit 4dbdd30
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ export async function run(verb: string, files: string[]): Promise<boolean> {
case 'lint':
case 'check': {
try {
await execa('node', ['./node_modules/eslint/bin/eslint', ...flags], {
stdio: 'inherit',
});
await execa('eslint', flags, {stdio: 'inherit'});
return true;
} catch (e) {
return false;
Expand All @@ -152,13 +150,7 @@ export async function run(verb: string, files: string[]): Promise<boolean> {
case 'fix': {
const fixFlag = options.dryRun ? '--fix-dry-run' : '--fix';
try {
await execa(
'node',
['./node_modules/eslint/bin/eslint', fixFlag, ...flags],
{
stdio: 'inherit',
}
);
await execa('eslint', [fixFlag, ...flags], {stdio: 'inherit'});
return true;
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 4dbdd30

Please sign in to comment.