ESLint v8.x reached end-of-life on 2024-10-05 and is no longer maintained. Upgrade or consider long-term support options
Versions

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

Version

This rule was introduced in ESLint v0.1.4 and removed in v0.10.0.

Change Language