Closed as not planned
Description
Current Behavior
I've created a brand new project (angular monorepo) which uses flat eslint configuration. The generated project has a root level eslint.config.mjs
, and also has one for the single application. However, eslint only ever considers the top level config as per this blog post. So, the whole setup is invalid; the app level configuration is never read. Therefore, for cypress tests for example, one cannot ignore cypress-specific eslint warnings because cypress.configs['recommended']
is never applied (it'd have to be at the root level).
Expected Behavior
I'd expect that monorepos using flat esconfig would have the correct configuration (single top-level eslint.config.mjs
) with the proper setup.
GitHub Repo
No response
Steps to Reproduce
- create a new workspace with
npx create-nx-workspace
(angular / integrated monorepo / esbuild / sass / jest / cypress) - add this extra line to
/apps/example-project-e2e/src/e2e/app.cy.ts
:
// eslint-disable-next-line cypress/no-assigning-return-values
- lint the generated e2e test files with
npx eslint apps/example-project-e2e/**
- observe the error
4:1 error Definition for rule 'cypress/no-assigning-return-values' was not found cypress/no-assigning-return-values
Nx Report
Node : 20.17.0
OS : win32-x64
Native Target : x86_64-windows
npm : 10.2.3
nx : 20.8.0
@nx/js : 20.8.0
@nx/jest : 20.8.0
@nx/eslint : 20.8.0
@nx/workspace : 20.8.0
@nx/angular : 20.8.0
@nx/cypress : 20.8.0
@nx/devkit : 20.8.0
@nx/eslint-plugin : 20.8.0
@nx/module-federation : 20.8.0
@nx/rspack : 20.8.0
@nx/web : 20.8.0
@nx/webpack : 20.8.0
typescript : 5.7.3
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
angular-eslint : 19.3.0
---------------------------------------
Cache Usage: 0.00 B / 47.57 GB
Failure Logs
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response