Skip to main content

prefer-no-peerDependencies

Enabling this rule will result in an error being generated if peerDependencies is present.

Example .npmpackagejsonlintrc configuration

{
"rules": {
"prefer-no-peerDependencies": "error"
}
}

Rule Details

Incorrect example(s)

{
"peerDependencies": {
"npm-package-json-lint-config-default": "^0.3.0"
}
}

Correct example(s)

{

}

History

  • Introduced in version 4.1.0