1 | # selector-combinator-blacklist
|
2 |
|
3 | **_Deprecated: Instead use the [`selector-combinator-disallowed-list`](../selector-combinator-disallowed-list/README.md) rule._**
|
4 |
|
5 | Specify a list of disallowed combinators.
|
6 |
|
7 |
|
8 | ```css
|
9 | a + b {}
|
10 | /** ↑
|
11 | * This combinator */
|
12 | ```
|
13 |
|
14 | This rule normalizes the whitespace descendant combinator to be a single space.
|
15 |
|
16 | This rule ignores [reference combinators](https://www.w3.org/TR/selectors4/#idref-combinators) e.g. `/for/`.
|
17 |
|
18 | ## Options
|
19 |
|
20 | `array|string`: `["array", "of", "combinators"]|"combinator"`
|
21 |
|
22 | Given:
|
23 |
|
24 | ```
|
25 | [">", " "]
|
26 | ```
|
27 |
|
28 | The following patterns are considered violations:
|
29 |
|
30 |
|
31 | ```css
|
32 | a > b {}
|
33 | ```
|
34 |
|
35 |
|
36 | ```css
|
37 | a b {}
|
38 | ```
|
39 |
|
40 |
|
41 | ```css
|
42 | a
|
43 | b {}
|
44 | ```
|
45 |
|
46 | The following patterns are _not_ considered violations:
|
47 |
|
48 |
|
49 | ```css
|
50 | a + b {}
|
51 | ```
|
52 |
|
53 |
|
54 | ```css
|
55 | a ~ b {}
|
56 | ```
|