mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 00:43:04 +00:00
63 lines
992 B
Markdown
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;
|
|
}
|
|
```
|