Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 361 Bytes

valid-version.md

File metadata and controls

37 lines (28 loc) · 361 Bytes

Enforces a valid version identifier in package.json

Enforces the use of a semanticly valid version identifier.

Fail

{
  "name": "foo",
  "version": "1.0"
}
{
  "name": "foo",
  "version": "1.0.x"
}

Pass

{
  "name": "foo",
  "version": "1.0.0"
}
{
  "name": "foo",
  "version": "1.0.0-beta.1"
}