Skip to main content

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