nursery/noTailwindRestyledComponents
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noTailwindRestyledComponents": "error"
}
}
}
}Disallow Tailwind utilities that override the appearance of components.
<Button className="rounded-none" />;<Button variant="danger" className="mt-4 w-full" />;
<button className="rounded-none" />;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/noTailwindRestyledComponents
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noTailwindRestyledComponents": "error"
}
}
}
}Disallow Tailwind CSS classes and variants that your project doesn't allow.
Reports CSS class names in JSX className or class attributes that are not defined in any imported CSS file.
Disallow Tailwind CSS utility classes that use raw palette colors.
Reports custom properties used with var() that have no visible declaration.
Disallow arbitrary values in Tailwind CSS utility classes.
Disallow TypeScript type assertions other than const assertions.