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 the leading ! important modifier in Tailwind CSS classes.
Disallow rest destructuring and object spread on TanStack Query results.
Disallow Tailwind CSS classes that set the same CSS properties on an element.
Disallow using the result of a TanStack Query hook as a React hook dependency.
Enforces the usage of the title element for the svg element.
Disallow TanStack Query functions that don't return any data.