nursery/usePackageJsonEngines
nursery · since 2.6.6
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonEngines": "error"
}
}
}
}{
"name": "my-package",
"version": "1.0.0"
}{
"name": "my-package",
"version": "1.0.0",
"engines": {
"node": ">=20"
}
}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/usePackageJsonEngines
nursery · since 2.6.6
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonEngines": "error"
}
}
}
}Enforce that components are defined as functions and never as classes.
Prefer logical CSS properties over physical properties.
Enforces naming conventions for React createContext, useId, and useRef.