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