Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 640 Bytes

File metadata and controls

48 lines (33 loc) · 640 Bytes

selector-combinator-blacklist

Specify a blacklist of disallowed 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/.

Options

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

Given:

[">", " "]

The following patterns are considered violations:

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

The following patterns are not considered violations:

a + b {}
a ~ b {}