peerDependencies-type
Enabling this rule will result in an error being generated if the value in peerDependencies
is not an object.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"peerDependencies-type": "error"
}
}
Rule Details
Incorrect example(s)
{
"peerDependencies": 1
}
{
"peerDependencies": ["npm-package-json-lint"]
}
{
"peerDependencies": "npm-package-json-lint"
}
Correct example(s)
{
"peerDependencies": {
"npm-package-json-lint": "^0.3.0"
}
}
History
- Introduced in version 1.0.0