Skip to main content

require-dependencies

Enabling this rule will result in an error being generated if dependencies is missing from the package.json file.

Example .npmpackagejsonlintrc configuration

{
"rules": {
"require-dependencies": "error"
}
}

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"dependencies": {
"npm-package-json-lint": "^1.0.0"
}
}

History

  • Introduced in version 1.0.0