Skip to content

Commit

Permalink
[util] Fix eslint-commit check on excluded files
Browse files Browse the repository at this point in the history
  • Loading branch information
rumkin committed Jul 22, 2020
1 parent fc08b91 commit 5886bc5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/eslint-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ async function main() {
filePath: file,
})

if (result[0].errorCount > 0) {
hasErrors = true
for (const record of result) {
if (record.errorCount > 0) {
hasErrors = true
break
}
}

const report = formatter.format(result)
Expand Down

0 comments on commit 5886bc5

Please sign in to comment.