nursery/useConsistentLightnessNotation
nursery · since 2.6.3
Safe autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"useConsistentLightnessNotation": "error"
}
}
}
}Enforce a consistent notation for the lightness of colors.
a { color: oklch(0.85 0.17 88); }a { color: lab(86 -40 30); }a { color: oklch(85% 0.17 88); }
a { color: oklab(86% -0.2 0.15); }
a { color: lch(85% 60 88); }
a { color: lab(86% -40 30); }
a { color: oklch(from red 50% c h); }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/useConsistentLightnessNotation
nursery · since 2.6.3
{
"linter": {
"rules": {
"nursery": {
"useConsistentLightnessNotation": "error"
}
}
}
}Enforce a consistent notation for font weights.
Require a valid deletion date on the @deprecated directive.
Detects a disposable object assigned to a variable without using or await using syntax.
Require a value for Astro's client:only directive.
Enforces the use of with { type: "json" } for JSON module imports.