796 B
796 B
declaration-no-important
Disallow !important
within declarations.
color: pink !important; }
a { /** ↑
* This !important */
If you always want !important
in your declarations,
e.g. if you’re writing user
styles, you can safely add them using postcss-safe-important
.
Options
true
The following patterns are considered violations:
color: pink !important; } a {
color: pink ! important; } a {
color: pink!important; } a {
The following patterns are not considered violations:
color: pink; } a {