Skip to content
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

import/no-extraneous-dependencies use the closest package.json + the root's one #3121

Open
maksnester opened this issue Dec 16, 2024 · 1 comment

Comments

@maksnester
Copy link

For the monorepo setup where shared deps are dropped into the root package.json it'd be handy to specify root package.json as an additional source to check for dependencies.

Right now I only have the option to specify packageDir but I don't see how I could use it to consider only the closest package.json + the root's one.

@ljharb
Copy link
Member

ljharb commented Dec 16, 2024

Can you explain more about your practice of putting shared deps in the root?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants