space-unary-word-ops
一元字运算符后需要空格。
¥Requires spaces after unary word operators.
规则详情
¥Rule Details
此规则的错误代码示例:
¥Examples of incorrect code for this rule:
typeof!a
void{a:0}
new[a][0]
delete(a.b)
此规则的正确代码示例:
¥Examples of correct code for this rule:
delete a.b
new C
void 0
版本
此规则是在 ESLint v0.1.4 中引入,并在 v0.10.0 中删除。