correctness/noUnmatchableAnbSelector
correctness · since 1.8.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noUnmatchableAnbSelector": "error"
}
}
}
}a:nth-child(0) {}a:nth-last-child(0n) {}a:nth-of-type(0n+0) {}a:nth-child(1) {}a:nth-last-child(1n) {}a:nth-of-type(1n+0) {}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noUnmatchableAnbSelector
correctness · since 1.8.0
{
"linter": {
"rules": {
"correctness": {
"noUnmatchableAnbSelector": "error"
}
}
}
}Disallow an unsafe combination of the sandbox attribute.
Disallow unrecognized element names in type selectors.
Disallow unrecognized pseudo-element selectors.