nursery/usePackageJsonCpu
nursery · since 2.6.6
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonCpu": "error"
}
}
}
}{
"name": "my-package",
"version": "1.0.0"
}{
"name": "my-package",
"version": "1.0.0",
"cpu": ["x64", "arm64"]
}Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/usePackageJsonCpu
nursery · since 2.6.6
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonCpu": "error"
}
}
}
}Prefer logical CSS properties over physical properties.
Enforce that components are defined as functions and never as classes.