Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1009 Bytes

File metadata and controls

63 lines (42 loc) · 1009 Bytes

declaration-bang-space-after

Require a single space or disallow whitespace after the bang of declarations.

a { color: pink !important; }
/**             ↑
 * The space after this exclamation mark */

命令行中的 --fix 选项可以自动修复此规则报告的所有问题。

选项

string: "always"|"never"

"always"

There must always be a single space after the bang.

以下模式被视为违规:

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

以下模式被视为违规:

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

"never"

There must never be whitespace after the bang.

以下模式被视为违规:

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

以下模式被视为违规:

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