Skip to main content

require-config

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"config": {
"port": "8080"
}
}

History

  • Introduced in version 1.0.0