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