UNPKG

912 BMarkdownView Raw
1# selector-combinator-blacklist
2
3**_Deprecated: Instead use the [`selector-combinator-disallowed-list`](../selector-combinator-disallowed-list/README.md) rule._**
4
5Specify a list of disallowed combinators.
6
7<!-- prettier-ignore -->
8```css
9 a + b {}
10/** ↑
11 * This combinator */
12```
13
14This rule normalizes the whitespace descendant combinator to be a single space.
15
16This 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
22Given:
23
24```
25[">", " "]
26```
27
28The following patterns are considered violations:
29
30<!-- prettier-ignore -->
31```css
32a > b {}
33```
34
35<!-- prettier-ignore -->
36```css
37a b {}
38```
39
40<!-- prettier-ignore -->
41```css
42a
43b {}
44```
45
46The following patterns are _not_ considered violations:
47
48<!-- prettier-ignore -->
49```css
50a + b {}
51```
52
53<!-- prettier-ignore -->
54```css
55a ~ b {}
56```