prefer-no-optionalDependencies
Enabling this rule will result in an error being generated if optionalDependencies
is present.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"prefer-no-optionalDependencies": "error"
}
}
Rule Details
Incorrect example(s)
{
"optionalDependencies": {
"npm-package-json-lint-config-default": "^0.3.0"
}
}
Correct example(s)
{
}
History
- Introduced in version 4.1.0