Skip to content

Files

Latest commit

60dcf28 · Jan 22, 2019

History

History
35 lines (24 loc) · 631 Bytes

File metadata and controls

35 lines (24 loc) · 631 Bytes

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.

选项

true

以下模式被视为违规:

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

以下模式被视为违规:

a { color: pink; }