|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- # at-rule-no-unknown
-
- Disallow unknown at-rules.
-
- <!-- prettier-ignore -->
- ```css
- @unknown (max-width: 960px) {}
- /** ↑
- * At-rules like this */
- ```
-
- This rule considers at-rules defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
-
- ## Options
-
- ### `true`
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- @unknown {}
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- @charset "UTF-8";
- ```
-
- <!-- prettier-ignore -->
- ```css
- @CHARSET "UTF-8";
- ```
-
- <!-- prettier-ignore -->
- ```css
- @media (max-width: 960px) {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- @font-feature-values Font One {
- @styleset {}
- }
- ```
-
- ## Optional secondary options
-
- ### `ignoreAtRules: ["/regex/", /regex/, "string"]`
-
- Given:
-
- ```
- ["/^my-/", "custom"]
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- @my-at-rule "x.css";
- ```
-
- <!-- prettier-ignore -->
- ```css
- @my-other-at-rule {}
- ```
-
- <!-- prettier-ignore -->
- ```css
- @custom {}
- ```
|