Skip to main content

selector-combinator-allowed-list

指定允许的组合器列表。

¥Specify a list of allowed combinators.

  a + b {}
/** ↑

* This combinator */

该规则将空白后代组合器标准化为单个空格。

¥This rule normalizes the whitespace descendant combinator to be a single space.

该规则忽略 参考组合器,例如 /for/

¥This rule ignores reference combinators e.g. /for/.

message 次要选项 可以接受该规则的参数。

¥The message secondary option can accept the arguments of this rule.

选项

¥Options

array|string["array", "of", "combinators"]|"combinator"

鉴于:

¥Given:

[">", " "]

以下模式被视为问题:

¥The following patterns are considered problems:

a + b {}
a ~ b {}

以下模式不被视为问题:

¥The following patterns are not considered problems:

a > b {}
a b {}
a
b {}