require-optionalDependencies
Enabling this rule will result in an error being generated if optionalDependencies
is missing from the package.json file.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"require-optionalDependencies": "error"
}
}
Rule Details
Incorrect example(s)
{
}
Correct example(s)
{
"optionalDependencies": {
"npm-package-json-lint": "^1.0.0"
}
}
History
- Introduced in version 1.0.0