Skip to content

Files

Latest commit

 

History

History
69 lines (47 loc) · 946 Bytes

at-rule-no-unknown.md

File metadata and controls

69 lines (47 loc) · 946 Bytes

Pattern: Unknown at-rule

Issue: -

Description

Disallow unknown at-rules. This rule considers at-rules defined in the CSS Specifications, up to and including Editor's Drafts, to be known.

Examples

The following patterns are considered violations:

    @unknown (max-width: 960px) {}
/** ↑
 * At-rules like this */
@unknown {}

The following patterns are not considered violations:

@charset "UTF-8";
@CHARSET "UTF-8";
@media (max-width: 960px) {}
@font-feature-values Font One {
  @styleset {}
}

Configuration

ignoreAtRules: ["/regex/", "string"]

Given:

["/^some-/", "custom"]

The following patterns are not considered violations:

@some-at-rule "x.css";
@some-other-at-rule {}
@custom {}

Further Reading