-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
💅 noUndeclaredDependencies
should also validate peerDependencies
?
#2122
Comments
I agree this would make sense indeed. |
I'd like to work on this and #2123. But I have some questions on the future of this rule and maybe I can address them altogether if I can get a definite answer.
|
Yes.
Yes. But I think we may also want to generalize this to include support for import maps (also supported by Deno). So I would suggest implementing this in one or two separate PRs (depending on how much can be shared between the NPM-based version and WHATWG import maps). Let's first focus on a version without subpath imports.
Using
I would say yes, in theory. But I think it's best to wait with this until the type inference is underway. By then we will probably have some more infrastructure to support handling |
The handling of Plus, as a side note, this rule shouldn't check for installed dependencies. Of course, the scope can change, after all it's a nursery rule. Let's see how it goes. |
Environment information
Rule name
lint/nursery/noUndeclaredDependencies
Playground link
none
Expected result
Does not mark dependencies from
peerDependencies
as undeclaredCode of Conduct
The text was updated successfully, but these errors were encountered: