This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

1.0 KiB
Raw Blame History

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 Editors Drafts, to be known.

Options

true

The following patterns are considered violations:

@unknown {}

The following patterns are not considered violations:

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

Optional secondary options

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

Given:

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

The following patterns are not considered violations:

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