.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / at-rule-name-case / README.md
1 # at-rule-name-case
2
3 Specify lowercase or uppercase for at-rules names.
4
5 ```css
6    @media (min-width: 10px) {}
7 /** ↑
8  * These at-rule names */
9 ```
10
11 This rule ignores `@import` in Less.
12
13 Only lowercase at-rule names are valid in SCSS.
14
15 The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix some of the problems reported by this rule.
16
17 ## Options
18
19 `string`: `"lower"|"upper"`
20
21 ### `"lower"`
22
23 The following patterns are considered violations:
24
25 ```css
26 @Charset 'UTF-8';
27 ```
28
29 ```css
30 @cHarSeT 'UTF-8';
31 ```
32
33 ```css
34 @CHARSET 'UTF-8';
35 ```
36
37 ```css
38 @Media (min-width: 50em) {}
39 ```
40
41 ```css
42 @mEdIa (min-width: 50em) {}
43 ```
44
45 ```css
46 @MEDIA (min-width: 50em) {}
47 ```
48
49 The following patterns are *not* considered violations:
50
51 ```css
52 @charset 'UTF-8';
53 ```
54
55 ```css
56 @media (min-width: 50em) {}
57 ```
58
59 ### `"upper"`
60
61 The following patterns are considered violations:
62
63 ```css
64 @Charset 'UTF-8';
65 ```
66
67 ```css
68 @cHarSeT 'UTF-8';
69 ```
70
71 ```css
72 @charset 'UTF-8';
73 ```
74
75 ```css
76 @Media (min-width: 50em) {}
77 ```
78
79 ```css
80 @mEdIa (min-width: 50em) {}
81 ```
82
83 ```css
84 @media (min-width: 50em) {}
85 ```
86
87 The following patterns are *not* considered violations:
88
89 ```css
90 @CHARSET 'UTF-8';
91 ```
92
93 ```css
94 @MEDIA (min-width: 50em) {}
95 ```