Skip to main content

require-license

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"license": "MIT"
}

History

  • Renamed from license-required to require-license in version 1.0.0
  • Introduced in version 0.1.0