.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / at-rule-no-unknown / README.md
1 # at-rule-no-unknown
2
3 Disallow unknown at-rules.
4
5 ```css
6     @unknown (max-width: 960px) {}
7 /** ↑
8  * At-rules like this */
9 ```
10
11 This rule considers at-rules defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
12
13 ## Options
14
15 ### `true`
16
17 The following patterns are considered violations:
18
19 ```css
20 @unknown {}
21 ```
22
23 The following patterns are *not* considered violations:
24
25 ```css
26 @charset "UTF-8";
27 ```
28
29 ```css
30 @CHARSET "UTF-8";
31 ```
32
33 ```css
34 @media (max-width: 960px) {}
35 ```
36
37 ```css
38 @font-feature-values Font One {
39   @styleset {}
40 }
41 ```
42
43 ## Optional secondary options
44
45 ### `ignoreAtRules: ["/regex/", "string"]`
46
47 Given:
48
49 ```js
50 ["/^my-/", "custom"]
51 ```
52
53 The following patterns are *not* considered violations:
54
55 ```css
56 @my-at-rule "x.css";
57 ```
58
59 ```css
60 @my-other-at-rule {}
61 ```
62
63 ```css
64 @custom {}
65 ```