-
Notifications
You must be signed in to change notification settings - Fork 33
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
move checking to engines-type
#203
Comments
Hi @piranna - thanks for the issue! I have a handful of questions:
|
Not at all, but the problem is that it's a misnomer. Rule check for valid values, but it's checking if it's a valid range regarding to
That's the point, there's no config :-) I would have expected similar to the behaviour or other similar rules than it would validates than engines version range matches to a provided version.
Yes, that's it, what's doing
Yes, that would be nice, I think it's the current behaviour of this rule. It's similar to version-format, and in fact it's calling to |
npm-package-json-lint/src/rules/valid-values-engines.js
Lines 24 to 35 in a4d6e7c
valid-engines-values
is also checking that the values are of the correct type, instead of just only cheking they are one of the specified versions. I think this type checking should be moved toengines-type
to ensure it's a mapping object of strings instead of just only a plain object, and at the same, this one should do the checking against semver ranges instead of just only checking that specified versions match some fixed ones.The text was updated successfully, but these errors were encountered: