Skip to main content

require-publishConfig

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"publishConfig": {
"port": "8080"
}
}

History

  • Introduced in version 1.0.0