nursery/noTailwindConflictingClasses
nursery · since 2.6.9
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noTailwindConflictingClasses": "error"
}
}
}
}Disallow Tailwind CSS classes that set the same CSS properties on an element.
<div className="flex grid" />;<div className="p-2 hover:text-red-500 hover:text-blue-500" />;<div className="flex w-full" />;
<div className="flex md:grid" />;
<div className="p-2 px-4" />;
<div className="text-lg text-red-500" />;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noTailwindConflictingClasses
nursery · since 2.6.9
{
"linter": {
"rules": {
"nursery": {
"noTailwindConflictingClasses": "error"
}
}
}
}Enforces the usage of the title element for the svg element.
Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.
Disallow $derived.by() when $derived() is sufficient.
Disallow rest destructuring and object spread on TanStack Query results.
Disallow unnecessary $state wrapping of reactive classes.
Disallow TanStack Query functions that don't return any data.