Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 509 Bytes

require-name.md

File metadata and controls

39 lines (28 loc) · 509 Bytes
id title
require-name
require-name

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
  "name": "npm-package-json-lint"
}

History

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