.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / function-comma-space-after / README.md
1 # function-comma-space-after
2
3 Require a single space or disallow whitespace after the commas of functions.
4
5 ```css
6 a { transform: translate(1, 1) }
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 { transform: translate(1,1) }
23 ```
24
25 ```css
26 a { transform: translate(1 ,1) }
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 a { transform: translate(1, 1) }
33 ```
34
35 ```css
36 a { transform: translate(1 , 1) }
37 ```
38
39 ### `"never"`
40
41 There *must never* be whitespace after the commas.
42
43 The following patterns are considered violations:
44
45 ```css
46 a { transform: translate(1, 1) }
47 ```
48
49 ```css
50 a { transform: translate(1 , 1) }
51 ```
52
53 The following patterns are *not* considered violations:
54
55 ```css
56 a { transform: translate(1,1) }
57 ```
58
59 ```css
60 a { transform: translate(1 ,1) }
61 ```
62
63 ### `"always-single-line"`
64
65 There *must always* be a single space after the commas in single-line functions.
66
67 The following patterns are considered violations:
68
69 ```css
70 a { transform: translate(1,1) }
71 ```
72
73 ```css
74 a { transform: translate(1 ,1) }
75 ```
76
77 The following patterns are *not* considered violations:
78
79 ```css
80 a { transform: translate(1, 1) }
81 ```
82
83 ```css
84 a { transform: translate(1 , 1) }
85 ```
86
87 ```css
88 a {
89   transform: translate(1
90     ,1)
91 }
92 ```
93
94 ### `"never-single-line"`
95
96 There *must never* be whitepace after the commas in single-line functions.
97
98 The following patterns are considered violations:
99
100 ```css
101 a { transform: translate(1, 1) }
102 ```
103
104 ```css
105 a { transform: translate(1 , 1) }
106 ```
107
108 The following patterns are *not* considered violations:
109
110 ```css
111 a { transform: translate(1,1) }
112 ```
113
114 ```css
115 a { transform: translate(1 ,1) }
116 ```
117
118 ```css
119 a {
120   transform: translate(1
121     , 1)
122 }
123 ```