nursery/noUndeclaredClasses
nursery · since 2.5.0
{
"linter": {
"rules": {
"nursery": {
"noUndeclaredClasses": "error"
}
}
}
}Reports CSS class names in JSX className or class attributes that are not defined in any imported CSS file.
import "./styles.css";
export default () => <div className="missing" />;import "./styles.css";
export default () => <div className="header" />;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/noUndeclaredClasses
nursery · since 2.5.0
{
"linter": {
"rules": {
"nursery": {
"noUndeclaredClasses": "error"
}
}
}
}Disallow Tailwind utilities that override the appearance of components.
Reports custom properties used with var() that have no visible declaration.
Disallow Tailwind CSS classes and variants that your project doesn't allow.
Disallow TypeScript type assertions other than const assertions.
Disallow Tailwind CSS utility classes that use raw palette colors.