1 # selector-class-pattern
3 Specify a pattern for class selectors.
6 .foo, #bar.baz span, #hoo[disabled] { color: pink; }
8 * These class selectors */
11 This rule ignores non-outputting Less mixin definitions and called Less mixins.
13 Escaped selectors (e.g. `.u-size-11\/12\@sm`) are parsed as escaped twice (e.g. `.u-size-11\\/12\\@sm`). Your RegExp should account for that.
19 A string will be translated into a RegExp — `new RegExp(yourString)` — so *be sure to escape properly*.
21 The selector value *after `.`* will be checked. No need to include `.` in your pattern.
29 The following patterns are considered violations:
40 div > #zing + .foo-BAR {}
43 The following patterns are *not* considered violations:
50 div > #zing + .foo-bar {}
71 ## Optional secondary options
73 ### `resolveNestedSelectors: true | false` (default: `false`)
75 This option will resolve nested selectors with `&` interpolation.
77 For example, with `true`.
85 The following patterns are considered violations:
89 &__B {} /* resolved to ".A__B" */
93 The following patterns are *not* considered violations:
97 &B {} /* resolved to ".AB" */