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