Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 545 Bytes

config-type.md

File metadata and controls

52 lines (40 loc) · 545 Bytes
id title
config-type
config-type

Enabling this rule will result in an error being generated if the value in config is not an object.

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{
  "config": 8080
}
{
  "config": ["port", "8080"]
}
{
  "config": "port: 8080"
}

Correct example(s)

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

History

  • Introduced in version 0.1.0