1 | # at-rule-semicolon-space-before
|
2 |
|
3 | Require a single space or disallow whitespace before the semicolons of at-rules.
|
4 |
|
5 |
|
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 |
|
18 | There _must always_ be a single space before the semicolons.
|
19 |
|
20 | The following pattern is considered a violation:
|
21 |
|
22 |
|
23 | ```css
|
24 | @import "components/buttons";
|
25 | ```
|
26 |
|
27 | The following pattern is _not_ considered a violation:
|
28 |
|
29 |
|
30 | ```css
|
31 | @import "components/buttons" ;
|
32 | ```
|
33 |
|
34 | ### `"never"`
|
35 |
|
36 | There _must never_ be a single space before the semicolons.
|
37 |
|
38 | The following pattern is considered a violation:
|
39 |
|
40 |
|
41 | ```css
|
42 | @import "components/buttons" ;
|
43 | ```
|
44 |
|
45 | The following pattern is _not_ considered a violation:
|
46 |
|
47 |
|
48 | ```css
|
49 | @import "components/buttons";
|
50 | ```
|