Skip to main content

cpu-type

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{
"cpu": 1
}
{
"cpu": {
"arch": "x64"
}
}
{
"cpu": "x64"
}

Correct example(s)

{
"cpu": ["x64"]
}

History

  • Introduced in version 1.0.0