Current Behavior
When using eslint directly, eslint --fix --quiet will only fix issues that aren't silenced by --quiet. However nx run lint --quiet --fix has the opposite behavior - it will attempt to autofix all lint issues, even ones that would normally be ignored by --quiet.
In other words, nx run lint --quiet --fix behaves the same as nx run lint --fix.
I think it's an easy fix - pull request incoming...
Expected Behavior
nx run lint --quiet --fix should only fix issues that aren't silenced by --quiet
GitHub Repo
No response
Steps to Reproduce
- Write some code that produces fixable lint warnings (not errors)
- Verify that those warnings are silenced by
--quiet and appear without --quiet
- Run
nx run lint --quiet --fix and observe that the warnings are fixed
Nx Report
NX Report complete - copy this into the issue template
Node : 20.12.0
OS : darwin-arm64
Native Target : aarch64-macos
npm : 10.5.0
nx : 20.0.7
@nx/js : 20.0.7
@nx/jest : 20.0.7
@nx/eslint : 20.0.7
@nx/workspace : 20.0.7
@nx/devkit : 20.0.7
@nx/esbuild : 20.0.7
@nx/playwright : 20.0.7
@nx/vite : 20.0.7
@nx/web : 20.0.7
@nx/webpack : 20.0.7
typescript : 5.8.3
---------------------------------------
Community plugins:
@nxify-io/graphql-codegen : 0.0.2
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
I think it's an easy fix - pull request incoming...
Current Behavior
When using
eslintdirectly,eslint --fix --quietwill only fix issues that aren't silenced by--quiet. Howevernx run lint --quiet --fixhas the opposite behavior - it will attempt to autofix all lint issues, even ones that would normally be ignored by--quiet.In other words,
nx run lint --quiet --fixbehaves the same asnx run lint --fix.I think it's an easy fix - pull request incoming...
Expected Behavior
nx run lint --quiet --fixshould only fix issues that aren't silenced by--quietGitHub Repo
No response
Steps to Reproduce
--quietand appear without--quietnx run lint --quiet --fixand observe that the warnings are fixedNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
I think it's an easy fix - pull request incoming...