annotation-no-unknown
Disallow unknown annotations.
a { color: green !imprtant; }
/** ↑
* This annotation */
Use this rule to avoid mistyped annotations, e.g. !imprtant. Browsers ignore declarations with unknown annotations.
This rule considers annotations defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
This rule supports 1 message argument: the unknown annotation.
Options
true
{
"annotation-no-unknown": 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
{ "ignoreAnnotations": ["array", "of", "annotations", "/regex/"] }
Given:
{
"annotation-no-unknown": [
true,
{ "ignoreAnnotations": ["/^--foo-/", "--bar"] }
]
}
The following patterns are not considered problems:
a {
color: green !--foo--bar;
}
a {
color: green !--bar;
}