Skip to content

Commit db8d19e

Browse files
committed
docs: add no-important rule docs
1 parent 6440128 commit db8d19e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default [
6060
| :--------------------------------------------------------------- | :------------------------------- | :-------------: |
6161
| [`no-duplicate-imports`](./docs/rules/no-duplicate-imports.md) | Disallow duplicate @import rules | yes |
6262
| [`no-empty-blocks`](./docs/rules/no-empty-blocks.md) | Disallow empty blocks | yes |
63+
| [`no-important`](./docs/rules/no-important.md) | Disallow !important annotations | yes |
6364
| [`no-invalid-at-rules`](./docs/rules/no-invalid-at-rules.md) | Disallow invalid at-rules | yes |
6465
| [`no-invalid-properties`](./docs/rules/no-invalid-properties.md) | Disallow invalid properties | yes |
6566

docs/rules/no-important.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# no-important
2+
3+
Disallow `!important` annotations.
4+
5+
## Background
6+
7+
Needing !important indicates there may be a larger underlying issue.
8+
9+
## Rule Details
10+
11+
Examples of incorrect code:
12+
13+
```css
14+
a {
15+
color: red !important;
16+
}
17+
18+
a .link {
19+
font-size: padding: 10px 20px 30px 40px !important;
20+
}
21+
```

0 commit comments

Comments
 (0)