1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-25 06:25:23 +00:00
notes/node_modules/stylelint/lib/rules/declaration-no-important
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

declaration-no-important

Disallow !important within declarations.

a { color: pink !important; }
/**             ↑
 * 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 warnings:

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

The following patterns are not considered warnings:

a { color: pink; }