eslint migration to flat config issues #26600
Replies: 3 comments 1 reply
-
Just noticed in https://nx.dev/recipes/tips-n-tricks/flat-config#correctness-and-best-practices it states
This answers the part of my question about the syntax. If I generate a new, clean workspace, then migrate to flat config - its all fine. So this gives me a starting point to troubleshoot further. |
Beta Was this translation helpful? Give feedback.
-
With the |
Beta Was this translation helpful? Give feedback.
-
Is there any plan to support flat config by default while creating new workspaces? |
Beta Was this translation helpful? Give feedback.
-
Is there any useful documentation about the process of migrating eslint to the flat configuration file?
I am just completing a migration from Nx 15 to 19 (one version at a time) and hitting lots of issues with eslint.
I had a setup with
eslint-plugin-jest
which migrated to:But now my
.spec.ts
files (newly generated and existing) are subjected to other non-Jest lint rules and are failing e.g.error 'describe' is not defined no-undef
Similarly I get
parserOptions.project
errors now where I didn't previously, i.e. #8312.The syntax seems a little uglier than the documentation, there is a lot of spreading going on and
FlatCompat
being used.So question: has anyone undergone this process, with a significant existing eslint configuration, and can share any advice or tips?
Beta Was this translation helpful? Give feedback.
All reactions