This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.

declaration-no-important

Disallow !important within declarations.

a { color: pink !important; }
/**             ↑
 * This !important */

If you always want !important in your declarations, e.g. if youre writing user styles, you can safely add them using postcss-safe-important.

Options

true

The following patterns are considered violations:

a { color: pink !important; }
a { color: pink ! important; }
a { color: pink!important; }

The following patterns are not considered violations:

a { color: pink; }