-
Notifications
You must be signed in to change notification settings - Fork 20
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
🚀 Feature: Don't require version if package has "private": true
#250
Comments
Oh, that's good to know - thank you for reporting! Right now, the rule's implementation is set to only complain if there is a eslint-plugin-package-json/src/tests/rules/valid-version.test.ts Lines 45 to 46 in 2ce1881
What situation are you seeing where there's an erroneous complaint? |
Sorry, I misspoke: it's the
This test case in valid-package-def.test.ts would reveal it:
I can submit a PR if you'd like. I would create an exception for this error and only pass the |
Ahh, good news, I'm also working on https://github.com/TechNickAI/package.json-validator. So this would be a good issue to file there! Could I trouble you to do that please? |
Ha, just hit this in my own work. Clarifying my request for the issue: I like giving authors of issues & PRs proper attribution, and having them file things means they get credit more prominently. But I don't want to add more work to your plate on this clear bug in libraries that's inconveniencing you already. I've set myself a reminder to do everything on Monday if nothing's filed by then. |
Filed: JoshuaKGoldberg/package.json-validator#84
I get it, you're fostering the spirit of open source, not being lazy.
Nah, I'm just fucking around. You couldn't inconvenience me if you tried. I curate a little zen garden of npm packages that absolutely no one users over at https://github.com/altano/npm-packages and I'm adding package.json validation to it for absolutely no reason. So it's all good. |
🎉 This is included in version v0.15.1 🎉 The release is available on: Cheers! 📦🚀 |
Bug Report Checklist
main
branch of the repository.Overview
I have disabled the
package-json/valid-version
rule because it warns on private packages. Tools likechangeset
require that you remove the private package version number (instead of, say providing a useless one like 0.0.1) or it will try to manage that version, even if the package is private. Ideally this package would just allow no versions on private packages.Thank you for making this package btw. It's great!
Additional Info
No response
The text was updated successfully, but these errors were encountered: