Skip to content
This documentation is for v14 and up, the docs for v13 are archived.

PropertyDiffersFromValueGroup

When this happens

  • ✓ The package is matched by at least one value group
  • ✘ A property the group gives a value to is missing, or has a different value

Example

In this example the value group is:

.syncpackrc.json
{
"valueGroups": [
{
"values": {
"license": "MIT"
}
}
]
}
This package.json...
{
"name": "my-package",
"license": "ISC"
}
...is formatted as
{
"name": "my-package",
"license": "MIT"
}

Severity

Not configurable via severity. format --check reports it as an error and exits 1. format fixes it: it gives the property the value of the last value group which sets it.