#at-rule-no-unknown

Disallow unknown at-rules.

禁止使用未知的 at 规则。

    @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.

该规则只考虑 CSS 规范包括草案中定义的 at 规则。

#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 secondary options

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

Given:

给出:

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

The following patterns are not considered warnings:

以下模式正常:

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