1 | # at-rule-disallowed-list
|
2 |
|
3 | Specify a list of disallowed at-rules.
|
4 |
|
5 |
|
6 | ```css
|
7 | @keyframes name {}
|
8 | /** ↑
|
9 | * At-rules like this */
|
10 | ```
|
11 |
|
12 | ## Options
|
13 |
|
14 | `array|string`: `["array", "of", "unprefixed", "at-rules"]|"at-rule"`
|
15 |
|
16 | Given:
|
17 |
|
18 | ```
|
19 | ["extend", "keyframes"]
|
20 | ```
|
21 |
|
22 | The following patterns are considered violations:
|
23 |
|
24 |
|
25 | ```css
|
26 | a { @extend placeholder; }
|
27 | ```
|
28 |
|
29 |
|
30 | ```css
|
31 | @keyframes name {
|
32 | from { top: 10px; }
|
33 | to { top: 20px; }
|
34 | }
|
35 | ```
|
36 |
|
37 |
|
38 | ```css
|
39 | @-moz-keyframes name {
|
40 | from { top: 10px; }
|
41 | to { top: 20px; }
|
42 | }
|
43 | ```
|
44 |
|
45 | The following patterns are _not_ considered violations:
|
46 |
|
47 |
|
48 | ```css
|
49 | @import "path/to/file.css";
|
50 | ```
|