Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1015 Bytes

File metadata and controls

55 lines (36 loc) · 1015 Bytes

selector-pseudo-class-parentheses-space-inside

Require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors.

input:not( [type="submit"] ) {}
/**      ↑                 ↑
 * The space inside these two parentheses */

命令行中的 --fix 选项可以自动修复此规则报告的所有问题。

选项

string: "always"|"never"

"always"

There must always be a single space inside the parentheses.

以下模式被视为违规:

input:not([type="submit"]) {}
input:not([type="submit"] ) {}

以下模式被视为违规:

input:not( [type="submit"] ) {}

"never"

There must never be whitespace on the inside the parentheses.

以下模式被视为违规:

input:not( [type="submit"] ) {}
input:not( [type="submit"]) {}

以下模式被视为违规:

input:not([type="submit"]) {}