Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 911 Bytes

File metadata and controls

73 lines (50 loc) · 911 Bytes

at-rule-no-unknown

Disallow unknown at-rules.

    @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 warnings:

@unknown {}

The following patterns are not considered warnings:

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

Optional options

ignoreAtRules: ["array", "of", "at-rules"]

Allow unknown at-rules.

Given:

["unknown"]

The following patterns are considered warnings:

@unknown-at-rule {}

The following patterns are not considered warnings:

@media (max-width: 960px) { }
@unknown {}
@UNKNOWN {}