Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 980 Bytes

at-rule-semicolon-space-before.md

File metadata and controls

53 lines (33 loc) · 980 Bytes

Pattern: Incorrect spacing before at-rule semicolon

Issue: -

Description

Require a single space or disallow whitespace before the semicolons of at-rules.

@import "components/buttons";
/**                         ↑
 * The space before this semicolon */

Examples

string: "always"|"never"

"always"

There must always be a single space before the semicolons.

The following pattern is considered a problem:

@import "components/buttons";

The following pattern is not considered a problem:

@import "components/buttons" ;

"never"

There must never be a single space before the semicolons.

The following pattern is considered a problem:

@import "components/buttons" ;

The following pattern is not considered a problem:

@import "components/buttons";

Further Reading