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