Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Disallow unknown pseudo-class selectors.
a:hover {}
/** ↑
* This pseudo-class selector */
This rule considers pseudo-class selectors defined in the CSS Specifications, up to and including Editor’s Drafts, to be known.
This rule ignores vendor-prefixed pseudo-class selectors.
true
The following patterns are considered violations:
a:unknown {}
a:UNKNOWN {}
a:hoverr {}
The following patterns are not considered violations:
a:hover {}
a:focus {}
:not(p) {}
input:-moz-placeholder {}
ignorePseudoClasses: ["/regex/", "string"]
Given:
["/^my-/", "pseudo-class"]
The following patterns are not considered violations:
a:pseudo-class {}
a:my-pseudo {}
a:my-other-pseudo {}