valid-engines
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
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.