Skip to content

fix(linter): update lint executor to correctly handle --fix and --quiet#31970

Merged
meeroslav merged 1 commit intomasterfrom
eslint/fix-quiet-fix
Jul 21, 2025
Merged

fix(linter): update lint executor to correctly handle --fix and --quiet#31970
meeroslav merged 1 commit intomasterfrom
eslint/fix-quiet-fix

Conversation

@leosvelperez
Copy link
Copy Markdown
Member

@leosvelperez leosvelperez commented Jul 18, 2025

Current Behavior

When running ESLint using the @nx/eslint:lint executor with --quiet and --fix, and there are errors, no fix is made, and the task incorrectly succeeds.

This is a regression introduced by 9406d2b, which updated the executor to not fix warnings when --quiet is used, but the solution was incorrect.

Expected Behavior

When running ESLint using the @nx/eslint:lint executor with --quiet and --fix, and there are errors, fixes should be applied, and the task should succeed if there are no remaining errors. It should not fix warnings.

Related Issue(s)

Fixes #31868

@leosvelperez leosvelperez self-assigned this Jul 18, 2025
@leosvelperez leosvelperez requested a review from a team as a code owner July 18, 2025 09:33
@leosvelperez leosvelperez requested a review from meeroslav July 18, 2025 09:33
@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jul 18, 2025 9:38am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Jul 18, 2025

View your CI Pipeline Execution ↗ for commit 1fa7fd6

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 6m 10s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-18 10:49:08 UTC

@meeroslav meeroslav merged commit 59496ed into master Jul 21, 2025
7 of 8 checks passed
@meeroslav meeroslav deleted the eslint/fix-quiet-fix branch July 21, 2025 17:03
@meeroslav
Copy link
Copy Markdown
Contributor

Thank you @leosvelperez!

FrozenPandaz pushed a commit that referenced this pull request Jul 23, 2025
…quiet` (#31970)

## Current Behavior

When running ESLint using the `@nx/eslint:lint` executor with `--quiet`
and `--fix`, and there are errors, no fix is made, and the task
incorrectly succeeds.

This is a regression introduced by
9406d2b,
which updated the executor to not fix warnings when `--quiet` is used,
but the solution was incorrect.

## Expected Behavior

When running ESLint using the `@nx/eslint:lint` executor with `--quiet`
and `--fix`, and there are errors, fixes should be applied, and the task
should succeed if there are no remaining errors. It should not fix
warnings.

## Related Issue(s)

Fixes #31868

(cherry picked from commit 59496ed)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running eslint with --fix option ignores lint errors

2 participants