valid-engines
ðž This rule is enabled in the â
recommended config.
This rule uses package-json-validator to validate the engines property, if present, against the following criteria:
- It must be an object
- It should be a key to string value object, and the values should all be non-empty.
Examples
Section titled âExamplesâ{ "engines": { "node": 24 }}{ "engines": { "node": "^24.11.0" }}Related Rules
Section titled âRelated Rulesârequire-engines- Enforces that theenginesproperty is present.