3 Limit the number of type selectors in a selector.
8 * This type of selector */
11 This rule resolves nested selectors before counting the number of type selectors. Each selector in a [selector list](https://www.w3.org/TR/selectors4/#selector-list) is evaluated separately.
13 The `:not()` pseudo-class is also evaluated separately. The rule processes the argument as if it were an independent selector, and the result does not count toward the total for the entire selector.
17 `int`: Maximum type selectors allowed.
19 For example, with `2`:
21 The following patterns are considered violations:
39 The following patterns are *not* considered violations:
58 /* each selector in a selector list is evaluated separately */
64 /* `span` is inside `:not()`, so it is evaluated separately */
65 div a .foo:not(span) {}
68 The following patterns are *not* considered violations:
70 ## Optional secondary options
72 ### `ignore: ["child", "compounded", "descendant"]`
76 Discount child type selectors.
78 For example, with `2`:
80 The following patterns are *not* considered violations:
92 Discount compounded type selectors -- i.e. type selectors chained with other selectors.
94 For example, with `2`:
96 The following patterns are *not* considered violations:
108 Discount descendant type selectors.
110 For example, with `2`:
112 The following patterns are *not* considered violations:
122 ### `ignoreTypes: ["/regex/", "string"]`
130 For example, with `2`.
132 The following patterns are *not* considered violations:
143 div a my-other-type {}