1 # selector-type-no-unknown
3 Disallow unknown type selectors.
8 * This type selector */
11 This rule considers tags defined in the HTML, SVG, and MathML specifications to be known.
17 The following patterns are considered violations:
27 The following patterns are *not* considered violations:
41 ## Optional secondary options
43 ### `ignore: ["custom-elements", "default-namespace"]`
45 #### `"custom-elements"`
47 Allow custom elements.
49 The following patterns are considered violations:
59 The following patterns are *not* considered violations:
65 #### `"default-namespace"`
67 Allow unknown type selectors if they belong to the default namespace.
69 The following patterns are considered violations:
75 The following patterns are *not* considered violations:
81 ### `ignoreNamespaces: ["/regex/", "string"]`
86 ["/^my-/", "custom-namespace"]
89 The following patterns are *not* considered violations:
92 custom-namespace|unknown {}
96 my-namespace|unknown {}
100 my-other-namespace|unknown {}
103 ### `ignoreTypes: ["/regex/", "string"]`
108 ["/^my-/", "custom-type"]
111 The following patterns are *not* considered violations: