nursery/useConsistentBooleanProps
nursery · since 2.6.10
Safe autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"useConsistentBooleanProps": "error"
}
}
}
}Require a consistent style for JSX props with the value true
<Foo bar /><Foo bar={true} enabled={false} disabled={disabled} />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/useConsistentBooleanProps
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"useConsistentBooleanProps": "error"
}
}
}
}Enforce a consistent notation for font weights.
Require a value for Astro's client:only directive.
Enforce a consistent notation for the lightness of colors.
Reports CSS class selectors that are never referenced in any JSX or HTML file.
Require a valid deletion date on the @deprecated directive.