1 | # selector-descendant-combinator-no-non-space
|
2 |
|
3 | Disallow non-space characters for descendant combinators of selectors.
|
4 |
|
5 | ```css
|
6 | .foo .bar .baz {}
|
7 | /** ↑ ↑
|
8 | * These descendant combinators */
|
9 | ```
|
10 |
|
11 | This rule ensures that only a single space is used and ensures no tabs, newlines, nor multiple spaces are used for descendant combinators of selectors.
|
12 |
|
13 | The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix most of the problems reported by this rule.
|
14 |
|
15 | ## Options
|
16 |
|
17 | ### `true`
|
18 |
|
19 | The following patterns are considered violations:
|
20 |
|
21 | ```css
|
22 | .foo .bar {}
|
23 | ```
|
24 |
|
25 | ```css
|
26 | .foo
|
27 | .bar {}
|
28 | ```
|
29 |
|
30 | The following patterns are *not* considered violations:
|
31 |
|
32 | ```css
|
33 | .foo .bar {}
|
34 | ```
|