valid-version
💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule applies two validations to the version property:
- It must be a string rather than any other data type
- It should pass
semvervalidation
Example of incorrect code for this rule:
{ "version": "1"}Example of correct code for this rule:
{ "version": "1.2.3"}