Sha256: a5efe94a5faeaa55b6294c20438d016b1141bee7dfc0b3e174b899ed13a83db7

Contents?: true

Size: 1.03 KB

Versions: 24

Compression:

Stored size: 1.03 KB

Contents

# 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 {}
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md