Skip to content

Running eslint with --fix option ignores lint errors #31868

@dmaretskyi

Description

@dmaretskyi

Current Behavior

I have a project with lint errors in sources.

When I run nx lint --fix it completes successfully with no errors and no file changes.

When I run nx lint I see the errors correctly.

Expected Behavior

NX should address lint errors.

GitHub Repo

dxos/dxos@17f9bf2

Steps to Reproduce

  1. Checkout the commit provided
  2. pnpm install
  3. pnpm -w nx lint # the provided commit has lint errors in files
  4. pnpm -w nx lint --fix # will do nothing

Nx Report

Node           : 20.12.1
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 9.11.0

nx                 : 21.2.2
@nx/js             : 21.2.2
@nx/eslint         : 21.2.2
@nx/workspace      : 21.2.2
@nx/cypress        : 21.2.2
@nx/devkit         : 21.2.2
@nx/eslint-plugin  : 21.2.2
@nx/playwright     : 21.2.2
@nx/storybook      : 21.2.2
@nx/vite           : 21.2.2
@nx/web            : 21.2.2
typescript         : 5.8.3
---------------------------------------
Community plugins:
@dxos/esbuild              : 0.8.3
@dxos/nx-protobuf-compiler : 0.8.3
---------------------------------------
Local workspace plugins:
@dxos/nx-protobuf-compiler
@dxos/esbuild
---------------------------------------
Cache Usage: 2.15 GB / 92.64 GB

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

outdatedpriority: highHigh Priority (important issues which affect many people severely)scope: linterIssues related to Eslint support in Nxtype: bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions