nursery/noZeroLengthUnit
nursery · since 2.6.3
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noZeroLengthUnit": "error"
}
}
}
}a {
top: 0px;
}a {
margin: 0.0em auto;
}@media (min-width: 0px) {}a {
top: 0;
left: 2px;
transition-delay: 0s;
width: calc(0px + 100%);
line-height: 0px;
flex: 1 1 0px;
font: 16px/0px sans-serif;
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noZeroLengthUnit
nursery · since 2.6.3
{
"linter": {
"rules": {
"nursery": {
"noZeroLengthUnit": "error"
}
}
}
}Prefer folder exclusions that prevent Biome from scanning the folder.
Disallow returning a value from a function with the return type 'void'
Require kind sets instead of comparing kind names one by one in Biome JS plugins.
Disallow unnecessary String.raw function in template string literals without any escape sequence.
Require kind sets in Biome JS plugins to be created at the top level of the module.