Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 648 Bytes

File metadata and controls

63 lines (50 loc) · 648 Bytes

valid-versions

Ensures that the used dependencies versions are valid.

**Bad**: (invalid format)

{
  "dependencies": {
    "foo": "~~1.0.0"
  }
}

**Good**:

{
  "dependencies": {
    "foo": "~1.0.0"
  }
}

**Bad**: (notice the space before the asterisk)

{
  "dependencies": {
    "foo": "workspace: *"
  }
}

**Good**:

{
  "dependencies": {
    "foo": "workspace:*"
  }
}

**Bad**: (dist-tag does not exist)

{
  "dependencies": {
    "foo": "badDistTag"
  }
}

**Good**:

{
  "dependencies": {
    "foo": "latest"
  }
}