Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 474 Bytes

valid-version.md

File metadata and controls

26 lines (18 loc) · 474 Bytes

valid-version

💼 This rule is enabled in the ✅ recommended config.

This rule applies two validations to the "name" property:

  • It must be a string rather than any other data type
  • It should pass semver validation

Example of incorrect code for this rule:

{
	"version": "1"
}

Example of correct code for this rule:

{
	"version": "1.2.3"
}