.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / block-closing-brace-newline-before / README.md
1 # block-closing-brace-newline-before
2
3 Require a newline or disallow whitespace before the closing brace of blocks.
4
5 ```css
6     a { color: pink;
7     }
8 /** ↑
9  * The newline before this brace */
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 before the closing brace.
19
20 The following patterns are considered violations:
21
22 ```css
23 a { color: pink;}
24 ```
25
26 The following patterns are *not* considered violations:
27
28 ```css
29 a { color: pink;
30 }
31 ```
32
33 ```css
34 a {
35 color: pink;
36 }
37 ```
38
39 ### `"always-multi-line"`
40
41 There *must always* be a newline before the closing brace in multi-line blocks.
42
43 The following patterns are considered violations:
44
45 ```css
46 a {
47 color: pink;}
48 ```
49
50 The following patterns are *not* considered violations:
51
52 ```css
53 a { color: pink; }
54 ```
55
56 ```css
57 a { color: pink;
58 }
59 ```
60
61 ### `"never-multi-line"`
62
63 There *must never* be whitespace before the closing brace in multi-line blocks.
64
65 The following patterns are considered violations:
66
67 ```css
68 a {
69 color: pink; }
70 ```
71
72 The following patterns are *not* considered violations:
73
74 ```css
75 a { color: pink; }
76 ```
77
78 ```css
79 a {
80 color: pink;}
81 ```