Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

space-unary-ops

- Enforce consistent spacing before or after unary operators

Fixable

This rule enforces consistency regarding the spaces after words unary operators and after/before nonwords unary operators.

What ESLint should do when it catches the rule break

Show a warning

Options

words

Applies to unary word operators such as: new, delete, typeof, void, yield.

nonwords

Applies to unary operators such as: -, +, --, ++, !, !!.

Rule examples

You can check them out here.