UNPKG

930 BMarkdownView Raw
1# at-rule-semicolon-space-before
2
3Require a single space or disallow whitespace before the semicolons of at-rules.
4
5<!-- prettier-ignore -->
6```css
7@import "components/buttons";
8/** ↑
9 * The space before this semicolon */
10```
11
12## Options
13
14`string`: `"always"|"never"`
15
16### `"always"`
17
18There _must always_ be a single space before the semicolons.
19
20The following pattern is considered a violation:
21
22<!-- prettier-ignore -->
23```css
24@import "components/buttons";
25```
26
27The following pattern is _not_ considered a violation:
28
29<!-- prettier-ignore -->
30```css
31@import "components/buttons" ;
32```
33
34### `"never"`
35
36There _must never_ be a single space before the semicolons.
37
38The following pattern is considered a violation:
39
40<!-- prettier-ignore -->
41```css
42@import "components/buttons" ;
43```
44
45The following pattern is _not_ considered a violation:
46
47<!-- prettier-ignore -->
48```css
49@import "components/buttons";
50```