nursery/useTailwindShorthandClasses
nursery · since 2.5.9
{
"linter": {
"rules": {
"nursery": {
"useTailwindShorthandClasses": "error"
}
}
}
}Enforce using fewer Tailwind utilities instead of multiple utilities that are functionally the same.
<div className="w-4 h-4" />;<div className="size-4" />;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/useTailwindShorthandClasses
nursery · since 2.5.9
{
"linter": {
"rules": {
"nursery": {
"useTailwindShorthandClasses": "error"
}
}
}
}Require Svelte stores to be created with an initial value.
Require complete, statically written class names.
Enforce using Solid's <For /> component for mapping an array to JSX elements.
Disallow static id values on elements outside SVG contexts.
Enforces naming conventions for React createContext, useId, and useRef.