.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / declaration-block-semicolon-space-after / README.md
1 # declaration-block-semicolon-space-after
2
3 Require a single space or disallow whitespace after the semicolons of declaration blocks.
4
5 ```css
6 a { color: pink; top: 0; }
7 /**            ↑
8  * The space after this semicolon */
9 ```
10
11 This rule ignores semicolons that are preceded by Less mixins.
12
13 This rule ignores the last semicolon of declaration blocks. Use the `block-closing-brace-*-before` rules to control the whitespace between the last semicolon and the closing brace instead.
14
15 ## Options
16
17 `string`: `"always"|"never"|"always-single-line"|"never-single-line"`
18
19 ### `"always"`
20
21 There *must always* be a single space after the semicolon.
22
23 The following patterns are considered violations:
24
25 ```css
26 a { color: pink;top: 0; }
27 ```
28
29 ```css
30 a {
31   color: pink;
32   top: 0;
33 }
34 ```
35
36 The following patterns are *not* considered violations:
37
38 ```css
39 a { color: pink;}
40 ```
41
42 ```css
43 a { color: pink; }
44 ```
45
46 ```css
47 a { color: pink; top: 0; }
48 ```
49
50 ### `"never"`
51
52 There *must never* be whitespace after the semicolon.
53
54 The following patterns are considered violations:
55
56 ```css
57 a { color: pink; top: 0; }
58 ```
59
60 ```css
61 a {
62   color: pink;
63   top: 0;
64 }
65 ```
66
67 The following patterns are *not* considered violations:
68
69 ```css
70 a { color: pink;}
71 ```
72
73 ```css
74 a { color: pink; }
75 ```
76
77 ```css
78 a { color: pink;top: 0; }
79 ```
80
81 ### `"always-single-line"`
82
83 There *must always* be a single space after the semicolon in single-line declaration blocks.
84
85 The following patterns are considered violations:
86
87 ```css
88 a { color: pink;top: 0; }
89 ```
90
91 The following patterns are *not* considered violations:
92
93 ```css
94 a { color: pink; top: 0; }
95 ```
96
97 ```css
98 a {
99   color: pink;
100   top: 0;
101 }
102 ```
103
104 ### `"never-single-line"`
105
106 There *must never* be whitespace after the semicolon in single-line declaration blocks.
107
108 The following patterns are considered violations:
109
110 ```css
111 a { color: pink; top: 0; }
112 ```
113
114 The following patterns are *not* considered violations:
115
116 ```css
117 a { color: pink;top: 0; }
118 ```
119
120 ```css
121 a {
122   color: pink;
123   top: 0;
124 }
125 ```