nursery/noScssDeprecatedColorFunctions
nursery · since 2.6.10
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noScssDeprecatedColorFunctions": "error"
}
}
}
}Disallow the deprecated Sass functions that read one channel of a color.
@use "sass:color";
a {
opacity: color.alpha($brand);
}a {
opacity: opacity($brand);
}$hue: hue($brand);@use "sass:color";
$hue: color.channel($brand, "hue", $space: hsl);
a {
opacity: color.channel($brand, "alpha");
filter: opacity(50%);
}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/noScssDeprecatedColorFunctions
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"noScssDeprecatedColorFunctions": "error"
}
}
}
}Disallow dependencies that are known to have better alternatives.
Disallow nesting a cascade layer inside a layer with the same name.
Disallow animation and transition times that are shorter than a configured minimum.