-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-unresolved doesnt respect package exports #2389
Comments
Duplicate of #1810. |
I'd suggest making that package have an actual |
A better structural fix would be for tooling to catch up with package exports instead |
Both fixes are needed; packages should remain backwards-compatible, instead of being hostile to those users. Certainly this package, and the ecosystem's tooling, will eventually catch up as well. |
The |
I gathered that - I'm saying that all packages should have that requirement. |
I disagree with that, but I guess its besides the point. You mentioned that "eventually" this plugin will support package exports, the issue you linked has been open for 2 years, is there already work started to support package exports? If not, would you be willing to take a PR? I might be able to spend some time and take a stab at it |
The work needs to be done in the |
If I import something from package
foo
, that has in it'spackage.json
the following exports map:The following import will cause an
import/no-unresolved
error, while being completely valid:The text was updated successfully, but these errors were encountered: