-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Bug: Make disabling the no-unpublished-x rules in private packages opt-in #297
Comments
I'm not sure what the best approach would be to tackle this bug. I see two option how to achieve this:
Both options are better than what we currently have, where there is NO option to enable the rules in a private package. |
@aladdin-add @voxpelli @bmish happy to get some insights from your side how to approach this. |
I'm fine with opt-in, however it's a breaking change (we won't be releasing it anytime soon). I suggest:
|
@aladdin-add I've opened a PR with |
I'm on the fence about this one, one part of me thinks that we should accept this option. This is the main sentiment in:
The thing I am not sure about is if we want to add the complexity to the rule, or if we want to split the file check out of the dependencies check |
Just looking at #298 the change looks simple enough :) |
Environment
Node version: 20.11.0
npm version: 10.2.4
ESLint version: 8.57.0
eslint-plugin-n version: 15.7.0
Operating System: macOS
What rule do you want to report?
no-unpublished-import, no-unpublished-require
Link to Minimal Reproducible Example
https://github.com/eslint-community/eslint-plugin-n/tree/master/tests/fixtures/no-unpublished/private-package
What did you expect to happen?
Make disabling no-unpublished-x optional in private packages.
Participation
Additional comments
#57 (comment)
The text was updated successfully, but these errors were encountered: