Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 458 Bytes

require-config.md

File metadata and controls

40 lines (29 loc) · 458 Bytes
id title
require-config
require-config

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
  "config": {
    "port": "8080"
  }
}

History

  • Introduced in version 1.0.0