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