stylelint
Version:
A mighty, modern CSS linter.
66 lines (45 loc) • 832 B
Markdown
# at-rule-no-unknown
Disallow unknown at-rules.
```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:
```css
@unknown {}
```
The following patterns are *not* considered violations:
```css
"UTF-8";
```
```css
"UTF-8";
```
```css
(max-width: 960px) {}
```
```css
-feature-values Font One {
{}
}
```
## Optional secondary options
### `ignoreAtRules: ["/regex/", /regex/, "string"]`
Given:
```js
["/^my-/", "custom"]
```
The following patterns are *not* considered violations:
```css
-at-rule "x.css";
```
```css
-other-at-rule {}
```
```css
{}
```