requireSpaceBeforeBinaryOperators

Disallows sticking binary operators to the left.

Types: Array or Boolean

Values: Array of quoted operators or true to require space before all possible binary operators without comma operator, since it's rarely used with this rule

Example

"requireSpaceBeforeBinaryOperators": [
    "=",
    ",",
    "+",
    "-",
    "/",
    "*",
    "==",
    "===",
    "!=",
    "!=="
    // etc
]
Valid
x !== y;
Invalid
x!== y;
Rule source
Test source