Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 520 Bytes

require-license.md

File metadata and controls

39 lines (28 loc) · 520 Bytes
id title
require-license
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