Skip to content

valid-devEngines

💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.

This rule uses package-json-validator to validate the devEngines property, if present, against the following criteria:

  • It should be an object with any of the following properties
    • cpu
    • libc
    • os
    • packageManager
    • runtime
  • The value of each property should be an object or an Array of objects with the following properties:
    • name (required): the name of the engine, e.g. “node”, “npm”, “yarn”, “bun”
    • version (optional): the version of the engine, which should be a valid semver range
    • onFail (optional): should be one of the following values: warn, error, ignore or download
{
"devEngines": {
"node": ">=24.0.0"
}
}