Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 469 Bytes

require-preferGlobal.md

File metadata and controls

38 lines (27 loc) · 469 Bytes
id title
require-preferGlobal
require-preferGlobal

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
  "preferGlobal": false
}

History

  • Introduced in version 1.0.0