noUnknownPseudoClass
Diagnostic Category: lint/nursery/noUnknownPseudoClass
Since: v1.8.0
Sources:
Disallow unknown pseudo-class selectors.
For details on known pseudo-class, see the MDN web docs
This rule ignores vendor-prefixed pseudo-class selectors.
Examples
Section titled ExamplesInvalid
Section titled Invalidcode-block.css:1:3 lint/nursery/noUnknownPseudoClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Unexpected unknown pseudo-class unknown
> 1 │ a:unknown
{}
│ ^^^^^^^
2 │
ℹ See MDN web docs for more details.
code-block.css:1:3 lint/nursery/noUnknownPseudoClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Unexpected unknown pseudo-class UNKNOWN
> 1 │ a:UNKNOWN
{}
│ ^^^^^^^
2 │
ℹ See MDN web docs for more details.
code-block.css:1:3 lint/nursery/noUnknownPseudoClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Unexpected unknown pseudo-class hoverr
> 1 │ a:hoverr
{}
│ ^^^^^^
2 │
ℹ See MDN web docs for more details.