requireOperatorBeforeLineBreak

Requires operators to appear before line breaks and not after.

Types: Array or Boolean

Values: Array of quoted operators or true to require all possible binary operators to appear before line breaks

JSHint: laxbreak

Example

"requireOperatorBeforeLineBreak": [
    "?",
    "=",
    "+",
    "-",
    "/",
    "*",
    "==",
    "===",
    "!=",
    "!==",
    ">",
    ">=",
    "<",
    "<="
]
Valid
x = y ? 1 : 2;
x = y ?
    1 : 2;
Invalid
x = y
    ? 1 : 2;
Rule source
Test source