UNPKG

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