.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / value-list-comma-space-after / README.md
1 # value-list-comma-space-after
2
3 Require a single space or disallow whitespace after the commas of value lists.
4
5 ```css
6 a { background-size: 0, 0; }
7 /**                   ↑
8  * The space after these commas */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"|"always-single-line"|"never-single-line"`
14
15 ### `"always"`
16
17 There *must always* be a single space after the commas.
18
19 The following patterns are considered violations:
20
21 ```css
22 a { background-size: 0,0; }
23 ```
24
25 ```css
26 a { background-size: 0
27       , 0; }
28 ```
29
30 The following patterns are *not* considered violations:
31
32 ```css
33 a { background-size: 0, 0; }
34 ```
35
36 ```css
37 a { background-size: 0
38       , 0; }
39 ```
40
41 ### `"never"`
42
43 There *must never* be whitespace after the commas.
44
45 The following patterns are considered violations:
46
47 ```css
48 a { background-size: 0, 0; }
49 ```
50
51 ```css
52 a { background-size: 0 ,
53       0; }
54 ```
55
56 The following patterns are *not* considered violations:
57
58 ```css
59 a { background-size: 0,0; }
60 ```
61
62 ```css
63 a { background-size: 0
64       ,0; }
65 ```
66
67 ### `"always-single-line"`
68
69 There *must always* be a single space after the commas in single-line value lists.
70
71 The following patterns are considered violations:
72
73 ```css
74 a { background-size: 0,0; }
75 ```
76
77 The following patterns are *not* considered violations:
78
79 ```css
80 a { background-size: 0, 0; }
81 ```
82
83 ```css
84 a { background-size: 0
85     , 0; }
86 ```
87
88 ```css
89 a { background-size: 0
90       ,0; }
91 ```
92
93 ### `"never-single-line"`
94
95 There *must never* be whitespace after the commas in single-line value lists.
96
97 The following patterns are considered violations:
98
99 ```css
100 a { background-size: 0, 0; }
101 ```
102
103 The following patterns are *not* considered violations:
104
105 ```css
106 a { background-size: 0,0; }
107 ```
108
109 ```css
110 a { background-size: 0
111       ,0; }
112 ```
113
114 ```css
115 a { background-size: 0
116       , 0; }
117 ```