invalid-semver

disallow a Feature’s or Template’s “version” that is not a valid semantic version

Category
correctness
Applies to
feature, template
Platforms
all

Why

Publishing a Feature or Template pushes it under tags derived from the “version” components: the full version, “major.minor”, and “major”, so consumers can pin as loosely or as tightly as they want. A value that is not valid semver has no such components, leaving nothing to derive those tags from.

Bad

{
  "id": "node",
  "version": "1.0",
  "name": "Node.js"
}

Good

{
  "id": "node",
  "version": "1.0.0",
  "name": "Node.js"
}

References