diff --git a/packages/eslint/src/executors/lint/lint.impl.ts b/packages/eslint/src/executors/lint/lint.impl.ts index 92e8f9f74ff5d..aa799e6144c20 100644 --- a/packages/eslint/src/executors/lint/lint.impl.ts +++ b/packages/eslint/src/executors/lint/lint.impl.ts @@ -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}).` );