.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / declaration-no-important / README.md
1 # declaration-no-important
2
3 Disallow `!important` within declarations.
4
5 ```css
6 a { color: pink !important; }
7 /**             ↑
8  * This !important */
9 ```
10
11 If you always want `!important` in your declarations, e.g. if you're writing [user styles](https://userstyles.org/), you can *safely* add them using [`postcss-safe-important`](https://github.com/crimx/postcss-safe-important).
12
13 ## Options
14
15 ### `true`
16
17 The following patterns are considered violations:
18
19 ```css
20 a { color: pink !important; }
21 ```
22
23 ```css
24 a { color: pink ! important; }
25 ```
26
27 ```css
28 a { color: pink!important; }
29 ```
30
31 The following patterns are *not* considered violations:
32
33 ```css
34 a { color: pink; }
35 ```