UNPKG

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