requireSpaceBeforePostfixUnaryOperators

Disallows sticking unary operators to the left.

Types: Array or Boolean

Values: Array of quoted operators or true to require space before postfix for all unary operators (i.e. increment/decrement operators).

Example

"requireSpaceBeforePostfixUnaryOperators": ["++", "--"]
Valid
x = y ++; y = z --;
Invalid
x = y++; y = z--;
Rule source
Test source