UNPKG

1.58 kBMarkdownView Raw
1# value-list-max-empty-lines
2
3Limit the number of adjacent empty lines within value lists.
4
5<!-- prettier-ignore -->
6```css
7a {
8 box-shadow:
9 inset 0 2px 0 #dcffa6,
10 /* ← */
11 0 2px 5px #000; /* ↑ */
12} /* ↑ */
13/** ↑
14 * This empty line */
15```
16
17The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
18
19## Options
20
21`int`: Maximum number of adjacent empty lines allowed.
22
23For example, with `0`:
24
25The following patterns are considered violations:
26
27<!-- prettier-ignore -->
28```css
29a {
30 padding: 10px
31
32 10px
33 10px
34 10px
35}
36```
37
38<!-- prettier-ignore -->
39```css
40a {
41 padding:
42 10px
43 10px
44 10px
45
46 10px
47}
48```
49
50<!-- prettier-ignore -->
51```css
52a {
53 box-shadow: inset 0 2px 0 #dcffa6,
54
55 0 2px 5px #000;
56}
57```
58
59<!-- prettier-ignore -->
60```css
61a {
62 box-shadow:
63 inset 0 2px 0 #dcffa6,
64
65 0 2px 5px #000;
66}
67```
68
69The following patterns are _not_ considered violations:
70
71<!-- prettier-ignore -->
72```css
73a {
74 padding: 10px 10px 10px 10px
75}
76```
77
78<!-- prettier-ignore -->
79```css
80a {
81 padding: 10px
82 10px
83 10px
84 10px
85}
86```
87
88<!-- prettier-ignore -->
89```css
90a {
91 padding:
92 10px
93 10px
94 10px
95 10px
96}
97```
98
99<!-- prettier-ignore -->
100```css
101a {
102 box-shadow: inset 0 2px 0 #dcffa6, 0 2px 5px #000;
103}
104```
105
106<!-- prettier-ignore -->
107```css
108a {
109 box-shadow: inset 0 2px 0 #dcffa6,
110 0 2px 5px #000;
111}
112```
113
114<!-- prettier-ignore -->
115```css
116a {
117 box-shadow:
118 inset 0 2px 0 #dcffa6,
119 0 2px 5px #000;
120}
121```