Files
DeviceManager/node_modules/stylelint/lib/rules/annotation-no-unknown/README.md

63 lines
992 B
Markdown

# annotation-no-unknown
Disallow unknown annotations.
<!-- prettier-ignore -->
```css
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](../../../docs/user-guide/configure.md#message) can accept the arguments of this rule.
## Options
### `true`
The following pattern is considered a problem:
<!-- prettier-ignore -->
```css
a {
color: green !imprtant;
}
```
The following pattern is _not_ considered a problem:
<!-- prettier-ignore -->
```css
a {
color: green !important;
}
```
## Optional secondary options
### `ignoreAnnotations: ["/regex/", /regex/, "string"]`
Given:
```json
["/^--foo-/", "--bar"]
```
The following patterns are _not_ considered problems:
<!-- prettier-ignore -->
```css
a {
color: green !--foo--bar;
}
```
<!-- prettier-ignore -->
```css
a {
color: green !--bar;
}
```