Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 499 Bytes

os-type.md

File metadata and controls

53 lines (40 loc) · 499 Bytes
id title
os-type
os-type

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{
  "os": 1
}
{
  "os": {
    "name": "linux"
  }
}
{
  "os": "linux"
}

Correct example(s)

{
  "os": ["linux"]
}

History

  • Introduced in version 1.0.0