nursery/noTailwindLegacyUtilities
nursery · since 2.6.0
Safe autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noTailwindLegacyUtilities": "error"
}
}
}
}Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.
<div className="flex-grow" />;<div className="hover:bg-gradient-to-r" />;<div className="grow hover:bg-linear-to-r text-ellipsis inset-s-4" />;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noTailwindLegacyUtilities
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noTailwindLegacyUtilities": "error"
}
}
}
}Disallow Tailwind CSS classes that set the same CSS properties on an element.
Disallow rest destructuring and object spread on TanStack Query results.
Enforces the usage of the title element for the svg element.
Disallow TanStack Query functions that don't return any data.
Disallow $derived.by() when $derived() is sufficient.