nursery/usePackageJsonValidEngines
nursery · since 2.6.3
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonValidEngines": "error"
}
}
}
}{
"engines": {
"node": 24
}
}{
"engines": {
"node": ""
}
}{
"engines": ["node >=24"]
}{
"engines": {
"node": "^24.11.0",
"npm": ">=11"
}
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/usePackageJsonValidEngines
nursery · since 2.6.3
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonValidEngines": "error"
}
}
}
}Require the cpu field in package.json to be a valid list of processor types.
Require the license field in package.json to be a valid license.
Disallow an anonymous operation in a document with other operations.
Enforce valid describe() callback.
Enforces that <img> elements have both width and height attributes.
Prefer using the class prop as a classlist over the classnames helper.