nursery/noPseudoElementInFunctionalPseudoClass
nursery · since 2.6.5
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noPseudoElementInFunctionalPseudoClass": "error"
}
}
}
}Disallow pseudo-elements inside :is(), :where(), :not() and :has().
.card:is(.featured::before) {
content: "";
}li:not(::marker) {
color: red;
}.card:is(.featured, .pinned)::before {
content: "";
}
li:not(.done)::marker {
color: red;
}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/noPseudoElementInFunctionalPseudoClass
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"noPseudoElementInFunctionalPseudoClass": "error"
}
}
}
}Replaces usages of forwardRef with passing ref as a prop.