selector-combinator-disallowed-list
Specify a list of disallowed combinators.
a + b {}/** ↑ * This combinator */Use this rule to enforce a convention. For example, disallow:
" "in favor of>, so that styles can’t reach deep into the markup+and~to avoid rules that depend on the order of elements
This rule normalizes the whitespace descendant combinator to be a single space.
This rule ignores reference combinators e.g. /for/.
This rule supports 1 message argument: the disallowed combinator.
Options
Section titled “Options”Array<string>
Section titled “Array<string>”["array", "of", "combinators"]Given:
{ "selector-combinator-disallowed-list": [">", " "]}The following patterns are considered problems:
a > b {}a b {}ab {}The following patterns are not considered problems:
a + b {}a ~ b {}