nursery/usePackageJsonValidCpu
nursery · since 2.6.3
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonValidCpu": "error"
}
}
}
}Require the cpu field in package.json to be a valid list of processor types.
{
"cpu": "x64"
}{
"cpu": ["x64", 64]
}{
"cpu": ["x64", ""]
}{
"cpu": ["x64", "arm64"]
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/usePackageJsonValidCpu
nursery · since 2.6.3
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonValidCpu": "error"
}
}
}
}Disallow an anonymous operation in a document with other operations.
Enforce that the engines field in package.json is valid.
Enforces that <img> elements have both width and height attributes.
Require the license field in package.json to be a valid license.
Require a name for every explicit GraphQL operation definition.
Enforce valid describe() callback.