-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using eslint-plugin-import in a monorepo #2247
Comments
|
I see! I think that helps a lot. Is this rule disabled by default? Enabling it definitely seems to fix the issue in my small demo repo and probably also in my larger repo |
will close for now as I think this is effectively solved, thanks! |
All rules are disabled by default. |
I meant, is it not part of |
I don't believe it is, no. I'd suggest using the airbnb config :-) we can't update the recommended config without a major bump, so it's quite behind. |
Hi there
I was wondering if there is any way I can use eslint-plugin-import to catch errors from bad imports in a monorepo
I noticed if I have a monorepo setup like this
packages/app1
hasis-even
in it'spackage.json
packages/app2
does not haveis-even
in itspackage.json
packages/app2
tries to useis-even
I'd like to get a warning from packages/app2's bad usage of is-even, but I don't get this
I made a small reproducible repo here https://github.com/cmdcolin/yarn_workspaces_eslint_plugin_import (run yarn && yarn lint from root of the repo) and there are no warnings from lint, though it would be cool to see if I can get warnings from this...
Note: I tried cross-posting this to stackoverflow too
https://stackoverflow.com/questions/69457844/using-eslint-plugin-import-in-a-monorepo-not-reporting-errors-when-it-should
The text was updated successfully, but these errors were encountered: