-
-
Notifications
You must be signed in to change notification settings - Fork 54
feat: Disable the no-unpublished-x rules in private packages
#57
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
feat: Disable the no-unpublished-x rules in private packages
#57
Conversation
352d828 to
e21f938
Compare
aladdin-add
left a comment
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, thanks!
|
can you update the failing tests to match the new behaviour? |
|
Yup, will do ASAP! |
Private packages are never published so the `no-unpublished-import` and `no-unpublished-require` rules don't need to run. This also removes `"private": true` from most fixtures that would fail due to the rules no longer running. More information about private packages: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#private
e21f938 to
7670a10
Compare
no-unpublished-x rules in private packagesno-unpublished-x rules in private packages
|
Feedback on this change: For those projects, you may want to set And I'd challenge that all use-cases that are "private packages" don't need to care about this rule being in effect. I'd even argue that the majority of cases should clearly separate |
Private packages are never published so the
no-unpublished-importandno-unpublished-requirerules don't need to run.More information: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#private
This fixes the original issue from the eslint-plugin-node repo: mysticatea#77
It seems a lot of tests fail because their test fixture setups containI removedpackage.jsonfiles withprivate: trueset. I think that is just an issue with those textures andprivate: trueshould be removed there?"private": truewhere needed.