UNPKG

977 BMarkdownView Raw
1# at-rule-semicolon-newline-after
2
3Require a newline after the semicolon of at-rules.
4
5```css
6@import url("x.css");
7@import url("y.css");
8/** ↑
9 * The newline after these semicolons */
10```
11
12This rule allows an end-of-line comment followed by a newline. For example:
13
14```css
15@import url("x.css"); /* end-of-line comment */
16
17a {}
18```
19
20The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule.
21
22## Options
23
24`string`: `"always"`
25
26### `"always"`
27
28There *must always* be a newline after the semicolon.
29
30The following patterns are considered violations:
31
32```css
33@import url("x.css"); @import url("y.css");
34```
35
36```css
37@import url("x.css"); a {}
38```
39
40The following patterns are *not* considered violations:
41
42```css
43@import url("x.css");
44@import url("y.css");
45```
46
47```css
48@import url("x.css"); /* end-of-line comment */
49a {}
50```
51
52```css
53@import url("x.css");
54
55a {}
56```