Require a single space or disallow whitespace before the commas of selector lists.
a ,b { color: pink; }
/** ↑
* The space before this comma */
命令行中的 --fix
选项可以自动修复此规则报告的所有问题。
string
: "always"|"never"|"always-single-line"|"never-single-line"
There must always be a single space before the commas.
以下模式被视为违规:
a,b { color: pink; }
a, b { color: pink; }
以下模式不被视为违规:
a ,b { color: pink; }
a , b { color: pink; }
There must never be whitespace before the commas.
以下模式被视为违规:
a ,b { color: pink; }
a , b { color: pink; }
以下模式不被视为违规:
a,b { color: pink; }
a, b { color: pink; }
There must always be a single space before the commas in single-line selector lists.
以下模式被视为违规:
a,b { color: pink; }
以下模式不被视为违规:
a,
b { color: pink; }
There must never be a single space before the commas in single-line selector lists.
以下模式被视为违规:
a ,b { color: pink; }
以下模式不被视为违规:
a ,
b { color: pink; }