.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / block-opening-brace-space-after / README.md
1 # block-opening-brace-space-after
2
3 Require a single space or disallow whitespace after the opening brace of blocks.
4
5 ```css
6   a { color: pink; }
7 /** ↑
8  * The space after this brace */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"|"always-single-line"|"never-single-line"|"always-multi-line"|"never-multi-line"`
14
15 ### `"always"`
16
17 There *must always* be a single space after the opening brace.
18
19 The following patterns are considered violations:
20
21 ```css
22 a {color: pink; }
23 ```
24
25 ```css
26 a {
27 color: pink; }
28 ```
29
30 The following patterns are *not* considered violations:
31
32 ```css
33 a { color: pink; }
34 ```
35
36 ```css
37 a { color: pink;
38 }
39 ```
40
41 ### `"never"`
42
43 There *must never* be whitespace after the opening brace.
44
45 The following patterns are considered violations:
46
47 ```css
48 a { color: pink; }
49 ```
50
51 ```css
52 a {
53 color: pink; }
54 ```
55
56 The following patterns are *not* considered violations:
57
58 ```css
59 a {color: pink; }
60 ```
61
62 ```css
63 a
64 {color: pink; }
65 ```
66
67 ### `"always-single-line"`
68
69 There *must always* be a single space after the opening brace in single-line blocks.
70
71 The following patterns are considered violations:
72
73 ```css
74 a {color: pink; }
75 ```
76
77 The following patterns are *not* considered violations:
78
79 ```css
80 a { color: pink; }
81 ```
82
83 ```css
84 a {color: pink;
85 }
86 ```
87
88 ### `"never-single-line"`
89
90 There *must never* be whitespace after the opening brace in single-line blocks.
91
92 The following patterns are considered violations:
93
94 ```css
95 a { color: pink; }
96 ```
97
98 The following patterns are *not* considered violations:
99
100 ```css
101 a {color: pink; }
102 ```
103
104 ```css
105 a { color: pink;
106 }
107 ```
108
109 ### `"always-multi-line"`
110
111 There *must always* be a single space after the opening brace in multi-line blocks.
112
113 The following patterns are considered violations:
114
115 ```css
116 a {color: pink;
117 }
118 ```
119
120 The following patterns are *not* considered violations:
121
122 ```css
123 a {color: pink; }
124 ```
125
126 ```css
127 a { color: pink;
128 }
129 ```
130
131 ### `"never-multi-line"`
132
133 There *must never* be whitespace after the opening brace in multi-line blocks.
134
135 The following patterns are considered violations:
136
137 ```css
138 a { color: pink;
139 }
140 ```
141
142 The following patterns are *not* considered violations:
143
144 ```css
145 a { color: pink; }
146 ```
147
148 ```css
149 a {color: pink;
150 }
151 ```