at-rule-no-unknown
Disallow unknown at-rules.
@unknown (max-width: 960px) {}/** ↑ * At-rules like this */Use this rule to avoid mistyped at-rules, e.g. @keyframe. Browsers ignore unknown at-rules along with everything inside.
This rule considers at-rules defined in the CSS Specifications, up to and including Editor’s Drafts, to be known.
For customizing syntax, see the languageOptions section.
This rule supports 1 message argument: the unknown at-rule.
Options
Section titled “Options”{ "at-rule-no-unknown": true}The following patterns are considered problems:
@unknown {}The following patterns are not considered problems:
@media (max-width: 960px) {}@font-feature-values Font One { @styleset {}}Optional secondary options
Section titled “Optional secondary options”ignoreAtRules
Section titled “ignoreAtRules”{ "ignoreAtRules": ["array", "of", "at-rules", "/regex/"] }Given:
{ "at-rule-no-unknown": [true, { "ignoreAtRules": ["/^--my-/", "--custom"] }]}The following patterns are not considered problems:
@--my-at-rule "x.css";@--my-other-at-rule {}@--custom {}