Skip to main content

devDependencies-type

Enabling this rule will result in an error being generated if the value in devDependencies is not an object.

Example .npmpackagejsonlintrc configuration

{
"rules": {
"devDependencies-type": "error"
}
}

Rule Details

Incorrect example(s)

{
"devDependencies": 1
}
{
"devDependencies": ["npm-package-json-lint"]
}
{
"devDependencies": "npm-package-json-lint"
}

Correct example(s)

{
"devDependencies": {
"npm-package-json-lint": "^0.3.0"
}
}

History

  • Introduced in version 0.1.0