angular library generator generates wrong eslint config #20939
Labels
blocked: retry with latest
Retry with latest release or head.
outdated
scope: angular
Issues related to Angular support in Nx
scope: linter
Issues related to Eslint support in Nx
type: bug
Current Behavior
Using the
@nx/angular:library
generator creates an.eslintrc.json
that looks like this (note we have not yet migrated our repo to flat eslint config,.eslintrc.js
is still using the legacy format):Expected Behavior
The eslint config that gets generated looks more like this:
GitHub Repo
https://github.com/mattlewis92/nx-eslint-repro
Steps to Reproduce
.eslintrc.json
to.eslintrc.js
nx generate @nx/angular:library foo
libs/foo/.eslintrc.json
is wrongNx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
If it is not possible to easily detect if the root eslint config is flat or not, a simple option we could pass to the library generator like
is-using-flat-eslint-config=false
would be great.The text was updated successfully, but these errors were encountered: