Open mthines opened 2 years ago
I think the root cause of this issue is that we provide plugin dependencies via the shareable config, instead of forcing downstream consumers to install modules as peerdependencies. We instead use a patch mechanism provided by https://www.npmjs.com/package/@rushstack/eslint-patch, due to this longstanding, unresolved, issue in eslint: https://github.com/eslint/eslint/issues/3458
I don't see any way to make solution from the eslint-config side of things. One thing we cool look at is providing patched versions of the generators for nx, which work together with our ecosystem.
Good news on this front, the new eslint format (https://github.com/NoA-Ignite-dk/eslint-config/issues/42) should resolve this issue. Now we just need to wait for nx to change over, or replace the built in generators.
When generating a new lib using NX it automatically generates a
.eslintrc.json
file which looks somewhat like this:The current setup requires us to delete the
"plugin:@nrwl/nx/react"
part, in order to get it working. I think we should find a solution which doesn't conflict which the natural flow of using NX.Error