跳到主要内容

at-rule-semicolon-space-before

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

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

Options

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";