noUnknownPseudoClass
诊断类别:lint/nursery/noUnknownPseudoClass
¥Diagnostic Category: lint/nursery/noUnknownPseudoClass
自从:v1.8.0
¥Since: v1.8.0
来源:
¥Sources:
禁止未知的伪类选择器。
¥Disallow unknown pseudo-class selectors.
有关已知伪类的详细信息,请参阅 MDN web 文档
¥For details on known pseudo-class, see the MDN web docs
此规则忽略供应商前缀的伪类选择器。
¥This rule ignores vendor-prefixed pseudo-class selectors.
¥Examples
¥Invalid
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 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.
¥Valid
¥Related links