Skip to content

ESLint root rules are ignored #32923

@Lonli-Lokli

Description

@Lonli-Lokli

Current Behavior

I have issues with React/Next projects, that if I would like to specify rules in root eslint mjs they are ignored in apps/libs
Please note I did not modify app eslint, only the root one

Expected Behavior

Errors reported based on root eslint config

GitHub Repo

https://github.com/Lonli-Lokli/vinto/tree/nx_bug

Steps to Reproduce

  1. open apps\vinto\src\app\components\avatar.tsx
    unused variable there
    root eslint.config.mjs
"@typescript-eslint/no-unused-vars": [
        "error",
        { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
      ],

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.19.0
OS             : win32-x64
Native Target  : x86_64-windows
npm            : 10.9.3

nx                     : 21.5.3
@nx/js                 : 21.5.3
@nx/jest               : 21.5.3
@nx/eslint             : 21.5.3
@nx/workspace          : 21.5.3
@nx/devkit             : 21.5.3
@nx/eslint-plugin      : 21.5.3
@nx/module-federation  : 21.5.3
@nx/next               : 21.5.3
@nx/react              : 21.5.3
@nx/rollup             : 21.5.3
@nx/vite               : 21.5.3
@nx/web                : 21.5.3
@nx/webpack            : 21.5.3
typescript             : 5.9.2
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/next/plugin
@nx/jest/plugin
@nx/eslint/plugin
---------------------------------------
Cache Usage: 6.19 MB / 31.25 GB

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

It is related to project/lib eslint config, I believe they overrites root one.

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions