1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-12 03:10:53 +00:00
notes/node_modules/stylelint/lib/rules/at-rule-no-unknown
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

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 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 {}