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