.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / selector-max-empty-lines / README.md
1 # selector-max-empty-lines
2
3 Limit the number of adjacent empty lines within selectors.
4
5 ```css
6 a,
7               /* ← */
8 b {        /* ↑ */
9   color: red; /* ↑ */
10 }             /* ↑ */
11 /**              ↑
12  *        This empty line */
13 ```
14
15 ## Options
16
17 `int`: Maximum number of empty lines.
18
19 For example, with `0`:
20
21 The following patterns are considered violations:
22
23 ```css
24 a
25
26 b {
27   color: red;
28 }
29 ```
30
31 ```css
32 a,
33
34 b {
35   color: red;
36 }
37 ```
38
39 ```css
40 a
41
42 >
43 b {
44   color: red;
45 }
46 ```
47
48 ```css
49 a
50 >
51
52 b {
53   color: red;
54 }
55 ```
56
57 The following patterns are *not* considered violations:
58
59 ```css
60 a b {
61   color: red;
62 }
63 ```
64
65 ```css
66 a
67 b {
68   color: red;
69 }
70 ```
71
72 ```css
73 a,
74 b {
75   color: red;
76 }
77 ```
78
79 ```css
80 a > b {
81   color: red;
82 }
83 ```
84
85 ```css
86 a
87 >
88 b {
89   color: red;
90 }
91 ```