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