Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Disallow unknown type selectors.
unknown {}
/** ↑
* This type selector */
This rule considers tags defined in the HTML, SVG, and MathML specifications to be known.
true
The following patterns are considered violations:
unknown {}
tag {}
The following patterns are not considered violations:
input {}
ul li {}
li > a {}
ignore: ["custom-elements", "default-namespace"]
"custom-elements"
Allow custom elements.
The following patterns are considered violations:
unknown {}
x-Foo {}
The following patterns are not considered violations:
x-foo {}
"default-namespace"
Allow unknown type selectors if they belong to the default namespace.
The following patterns are considered violations:
namespace|unknown {}
The following patterns are not considered violations:
unknown {}
ignoreNamespaces: ["/regex/", /regex/, "string"]
Given:
["/^my-/", "custom-namespace"]
The following patterns are not considered violations:
custom-namespace|unknown {}
my-namespace|unknown {}
my-other-namespace|unknown {}
ignoreTypes: ["/regex/", /regex/, "string"]
Given:
["/^my-/", "custom-type"]
The following patterns are not considered violations:
custom-type {}
my-type {}
my-other-type {}