Skip to main content

prefer-no-devDependencies

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

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

Correct example(s)

{

}

History

  • Introduced in version 4.0.0