Skip to main content

require-directories

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"directories": "..."
}

History

  • Introduced in version 1.0.0