Skip to main content

require-cpu

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"cpu": ["x64"]
}

History

  • Introduced in version 1.0.0