nursery/noTailwindLegacyImportant
nursery · since 2.6.10
Safe autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noTailwindLegacyImportant": "error"
}
}
}
}Disallow the leading ! important modifier in Tailwind CSS classes.
<div className="!flex" />;<div className="hover:!bg-red-500" />;<div className="flex! hover:bg-red-500! -m-4!" />;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noTailwindLegacyImportant
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"noTailwindLegacyImportant": "error"
}
}
}
}Disallow Tailwind CSS classes that set the same CSS properties on an element.
Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.
Enforces the usage of the title element for the svg element.
Disallow rest destructuring and object spread on TanStack Query results.
Disallow $derived.by() when $derived() is sufficient.
Disallow using the result of a TanStack Query hook as a React hook dependency.