Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 600 Bytes

File metadata and controls

48 lines (33 loc) · 600 Bytes

selector-combinator-whitelist

Specify a whitelist of allowed combinators.

  a + b {}
/** ↑
 * These combinators */

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

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

选项

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

给定:

[">", " "]

以下模式被视为违规:

a + b {}
a ~ b {}

以下模式被视为违规:

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