nursery/noTailwindRestrictedClasses
nursery · since 2.6.8
{
"linter": {
"rules": {
"nursery": {
"noTailwindRestrictedClasses": "error"
}
}
}
}Disallow Tailwind CSS classes and variants that your project doesn't allow.
<div className="text-green-500" />;<div className="md:float-left" />;<div className="text-success flex" />;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/noTailwindRestrictedClasses
nursery · since 2.6.8
{
"linter": {
"rules": {
"nursery": {
"noTailwindRestrictedClasses": "error"
}
}
}
}Disallow Tailwind CSS utility classes that use raw palette colors.
Disallow Tailwind utilities that override the appearance of components.
Disallow arbitrary values in Tailwind CSS utility classes.
Reports CSS class names in JSX className or class attributes that are not defined in any imported CSS file.
Reports custom properties used with var() that have no visible declaration.