Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 444 Bytes

require-private.md

File metadata and controls

38 lines (27 loc) · 444 Bytes
id title
require-private
require-private

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
  "private": false
}

History

  • Introduced in version 1.0.0