Eslint参考手册
规则 | Rules
space-unary-word-ops
此规则在ESLint v0.10.0中已删除,并由space-unary-ops规则取代。
在一元字符运算符后面需要空格。
Rule Details
此规则的错误代码示例:
typeof!a
void{a:0}
new[a][0]
delete(a.b)
此规则的正确代码示例:
delete a.b
new C
void 0
版本
此规则在ESLint 0.1.4中引入,并在0.10.0中删除。
资源
- Documentation source
规则 | Rules相关

ESLint 是一个代码规范和错误检查工具,有以下几个特性。所有东西都是可以插拔的。你可以调用任意的 rule api 或者 formatter api 去打包或者定义 rule or formatter。任意的 rule 都是独立的。没有特定的 coding style,你可以自己配置。
主页 | https://eslint.org/ |
源码 | https://github.com/eslint/eslint |
发布版本 | 4.12.0 |