selector-combinator-allowed-list
Specify a list of allowed combinators.
a + b {}/** ↑ * This combinator */Use this rule to enforce a subset of combinators as a convention. For example, allow only >, so that styles can’t reach deep into the markup.
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-allowed-list": [">", " "]}The following patterns are considered problems:
a + b {}a ~ b {}The following patterns are not considered problems:
a > b {}a b {}ab {}