UNPKG

723 BMarkdownView Raw
1# at-rule-disallowed-list
2
3Specify a list of disallowed at-rules.
4
5<!-- prettier-ignore -->
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
16Given:
17
18```
19["extend", "keyframes"]
20```
21
22The following patterns are considered violations:
23
24<!-- prettier-ignore -->
25```css
26a { @extend placeholder; }
27```
28
29<!-- prettier-ignore -->
30```css
31@keyframes name {
32 from { top: 10px; }
33 to { top: 20px; }
34}
35```
36
37<!-- prettier-ignore -->
38```css
39@-moz-keyframes name {
40 from { top: 10px; }
41 to { top: 20px; }
42}
43```
44
45The following patterns are _not_ considered violations:
46
47<!-- prettier-ignore -->
48```css
49@import "path/to/file.css";
50```