suspicious/noEmptyBlock
suspicious · since 1.8.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noEmptyBlock": "error"
}
}
}
}p {}.b {}@media print { a {} }p {
color: red;
}p { /* foo */ }@media print { a { color: pink; } }Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noEmptyBlock
suspicious · since 1.8.0
{
"linter": {
"rules": {
"suspicious": {
"noEmptyBlock": "error"
}
}
}
}Disallow accessing namespace imports dynamically.
Disallow empty type parameters in type aliases and interfaces.
Require all variable definitions to be unique.
Disallow to use unnecessary callback on flatMap.
Disallow duplicate selectors within keyframe blocks.