Skip to content

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.
{
"engines": {
"node": 24
}
}