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
Breaking: Strict package exports (refs #13654) #14706
Conversation
Hmmm, there's a ton of linting errors on the master branch right now. |
I'm not able to repro any failures on |
You probably have an old version of |
Ah ok, weird. I definitely didn’t intend to change all of those files it must have happened when I ran auto fix. I’ll try updating the plugin |
Thanks @mdjermanovic that did the trick! |
Forgot to mention: the more I think about it, the more I feel like the |
By documented, you mean in prose? as long as it's in package.json "exports" that seems fine. |
@ljharb yes, in prose. Forgot people could just look in package.json 🤦 |
I agree that we shouldn't document the btw it seems that const accessorPairs = require(
path.resolve(path.dirname(require.resolve("eslint")), "rules", "accessor-pairs")
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from two small documentation suggestions I left.
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Thanks for catching those docs issues. |
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
This implements the strict package exports RFC by updating
api.js
and implementingunsupported-api.js
.This does not implement
ESLint#getRulesMetaForReport()
method. I'll do a separate PR for that piece.Is there anything you'd like reviewers to focus on?
Please check that this matches the RFC. Also, how do we want to document the
use-at-your-own-risk
entrypoint? Should that be on the Node.js API page, or should we just omit it and trust that people who want it will find it?