Skip to content

valid-version

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

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

  • It must be a string
  • It should pass semver validation
{
"version": "1"
}