.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / at-rule-semicolon-newline-after / README.md
1 # at-rule-semicolon-newline-after
2
3 Require 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
12 This rule ignores `@import` in Less.
13
14 This rule allows an end-of-line comment followed by a newline. For example:
15
16 ```css
17 @import url("x.css"); /* end-of-line comment */
18
19 a {}
20 ```
21
22 ## Options
23
24 `string`: `"always"`
25
26 ### `"always"`
27
28 There *must always* be a newline after the semicolon.
29
30 The 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
40 The 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 */
49 a {}
50 ```
51
52 ```css
53 @import url("x.css");
54
55 a {}
56 ```