nursery/noTailwindArbitraryValue
nursery · since 2.5.7
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noTailwindArbitraryValue": "error"
}
}
}
}Disallow arbitrary values in Tailwind CSS utility classes.
<div className="w-[400px]" />;<div className="text-[#555] bg-white" />;<div className="[color:red]" />;<div className="w-4 text-red-500 bg-white" />;
<div className="[&:nth-child(3)]:px-2 bg-black/[0.5]" />;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/noTailwindArbitraryValue
nursery · since 2.5.7
{
"linter": {
"rules": {
"nursery": {
"noTailwindArbitraryValue": "error"
}
}
}
}Disallow Tailwind CSS utility classes that use raw palette colors.
Disallow ignoring the function returned by a store's subscribe() method.
Disallow Tailwind CSS classes and variants that your project doesn't allow.
Disallow destructuring props inside JSX components in Solid projects.
Disallow Tailwind utilities that override the appearance of components.