Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.05 KB

declaration-bang-space-before.md

File metadata and controls

65 lines (42 loc) · 1.05 KB

Pattern: Incorrect spacing before bang

Issue: -

Description

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

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

Examples

string: "always"|"never"

"always"

There must always be a single space before 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 before the bang.

The following patterns are considered problems:

a { color : pink !important; }

The following patterns are not considered problems:

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

Further Reading