no-duplicate-properties
Enabling this rule will result in an error being generated if package.json has duplicate properties in block section.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"no-duplicate-properties": "error"
}
}
Rule Details
Incorrect examples
{
"name": "packageName",
"name": "packageName"
}
Correct examples
{
"name": "packageName"
}
Shorthand for disabling the rule in .npmpackagejsonlintrc configuration
{
"rules": {
"no-duplicate-properties": "off"
}
}
History
- Introduced in version 4.5.0