Skip to content

valid-devDependencies

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

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

  • The value is an object
  • Each property’s key is a valid package name
  • Each property’s value is a valid version range
{
"devDependencies": {
"invalid-version": "catalob:"
}
}