nursery/noUndeclaredCustomProperties
nursery · since 2.5.11
{
"linter": {
"rules": {
"nursery": {
"noUndeclaredCustomProperties": "error"
}
}
}
}Reports custom properties used with var() that have no visible declaration.
<div style="color: var(--text-color)" /><div style="--text-color: blue; color: var(--text-color)" />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/noUndeclaredCustomProperties
nursery · since 2.5.11
{
"linter": {
"rules": {
"nursery": {
"noUndeclaredCustomProperties": "error"
}
}
}
}Reports CSS class names in JSX className or class attributes that are not defined in any imported CSS file.
Disallow TypeScript type assertions other than const assertions.
Disallow Tailwind utilities that override the appearance of components.
Disallow Tailwind CSS classes and variants that your project doesn't allow.
Reports CSS class selectors that are never referenced in any JSX or HTML file.