1 | # selector-descendant-combinator-no-non-space
|
2 |
|
3 | Disallow non-space characters for descendant combinators of selectors.
|
4 |
|
5 |
|
6 | ```css
|
7 | .foo .bar .baz {}
|
8 | /** ↑ ↑
|
9 | * These descendant combinators */
|
10 | ```
|
11 |
|
12 | 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.
|
13 |
|
14 | The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix most of the problems reported by this rule.
|
15 |
|
16 | This rule currently ignores selectors containing comments.
|
17 |
|
18 | ## Options
|
19 |
|
20 | ### `true`
|
21 |
|
22 | The following patterns are considered violations:
|
23 |
|
24 |
|
25 | ```css
|
26 | .foo .bar {}
|
27 | ```
|
28 |
|
29 |
|
30 | ```css
|
31 | .foo
|
32 | .bar {}
|
33 | ```
|
34 |
|
35 | The following patterns are _not_ considered violations:
|
36 |
|
37 |
|
38 | ```css
|
39 | .foo .bar {}
|
40 | ```
|