Skip to content

Commit

Permalink
fix(linter): ensure too many warnings is only logged if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
skrtheboss committed Jul 25, 2024
1 parent 3890edc commit 988f356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint/src/executors/lint/lint.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
outputPrintInfo(totals);
}

if (totals.warnings > options.maxWarnings) {
if (options.maxWarnings >= 0 && totals.warnings > options.maxWarnings) {
console.info(
`ESLint found too many warnings (maximum: ${options.maxWarnings}).`
);
Expand Down

0 comments on commit 988f356

Please sign in to comment.