config-type
Enabling this rule will result in an error being generated if the value in config
is not an object.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"config-type": "error"
}
}
Rule Details
Incorrect example(s)
{
"config": 8080
}
{
"config": ["port", "8080"]
}
{
"config": "port: 8080"
}
Correct example(s)
{
"config": {
"port": "8080"
}
}
History
- Introduced in version 0.1.0