Skip to content

Commit

Permalink
fix: dont invoke eslint when we have no lintable files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleavely committed Feb 21, 2023
1 parent fb39fab commit 36087a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const {
const lintableExtensions = LINTABLE_EXTENSIONS.split(',')
const lintableFiles = await getLintableFiles(lintableExtensions)

if (!lintableFiles.length) {
console.warn('eslint-pullrequest: no files qualified for linting')
return
}

const eslintArguments = [
// proxy any command-line arguments we received
...process.argv.slice(2),
Expand Down

0 comments on commit 36087a6

Please sign in to comment.