Skip to content

cpuValidity

Enforces that the cpu property is valid.

✅ This rule is included in the package-json logical presets.

The rule checks that, if present, the cpu property is an array of non-empty strings.

{
"cpu": true
}

If you don’t need compliance with npm’s cpu field specification, you can disable this rule. For example, if you use a different package manager that treats the field differently, this rule may not be correct for you.

  • cpuPresence - Enforces that the cpu property is present.
Made with ❤️‍🔥 around the world by the Flint team and contributors.