nursery/useConsistentFontWeightNotation
nursery · since 2.6.7
Safe autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"useConsistentFontWeightNotation": "error"
}
}
}
}a { font-weight: bold; }a { font: italic normal 20px sans-serif; }a { font-weight: lighter; }a { font-weight: 700; }
a { font: italic 400 20px sans-serif; }
a { font-weight: var(--weight); }
@font-face { font-weight: 400 700; }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/useConsistentFontWeightNotation
nursery · since 2.6.7
{
"linter": {
"rules": {
"nursery": {
"useConsistentFontWeightNotation": "error"
}
}
}
}Enforce a consistent notation for the lightness of colors.
Require a value for Astro's client:only directive.
Require a valid deletion date on the @deprecated directive.
Reports CSS class selectors that are never referenced in any JSX or HTML file.
Detects a disposable object assigned to a variable without using or await using syntax.