Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 992 Bytes

File metadata and controls

62 lines (45 loc) · 992 Bytes

annotation-no-unknown

Disallow unknown annotations.

a { color: green !imprtant; }
/**              ↑
 * This annotation */

This rule considers annotations defined in the CSS Specifications, up to and including Editor's Drafts, to be known.

The message secondary option can accept the arguments of this rule.

Options

true

The following pattern is considered a problem:

a {
  color: green !imprtant;
}

The following pattern is not considered a problem:

a {
  color: green !important;
}

Optional secondary options

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

Given:

["/^--foo-/", "--bar"]

The following patterns are not considered problems:

a {
  color: green !--foo--bar;
}
a {
  color: green !--bar;
}