correctness/noUnknownUnit
correctness · since 1.8.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noUnknownUnit": "error"
}
}
}
}a {
width: 10pixels;
}a {
width: calc(10px + 10pixels);
}a {
width: 10px;
}a {
width: 10Px;
}a {
width: 10pX;
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noUnknownUnit
correctness · since 1.8.0
{
"linter": {
"rules": {
"correctness": {
"noUnknownUnit": "error"
}
}
}
}Disallow unrecognized element names in type selectors.
Disallow An+B formulas that cannot select an element.
Disallow unrecognized pseudo-element selectors.
Disallow an unsafe combination of the sandbox attribute.