Require a single space or disallow whitespace before the colon in $
-variable declarations.
$variable: 10px;
/** ↑
* The space before this colon */
The --fix
option on the command line can automatically fix all of the problems reported by this rule.
string
: `"always"|"never"
There must always be a single space before the colon.
The following patterns are considered warnings:
a { $var: 10px }
$var:10px;
$var :10px;
$var
:10px;
The following patterns are not considered warnings:
a { $var : 10px }
$var :10px;
There must never be whitespace before the colon.
The following patterns are considered warnings:
$var :10px;
a { $var
:10px }
The following patterns are not considered warnings:
$var:10px;
a { $var: 10px }