Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 1.08 KB

declaration-bang-space-after.md

File metadata and controls

69 lines (45 loc) · 1.08 KB

Pattern: Incorrect spacing after bang

Issue: -

Description

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

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

Examples

string: "always"|"never"

"always"

There must always be a single space after the bang.

The following patterns are considered problems:

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

The following patterns are not considered problems:

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

"never"

There must never be whitespace after the bang.

The following patterns are considered problems:

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

The following patterns are not considered problems:

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

Further Reading