disallowMultiLineTernary

Disallows the test, consequent and alternate to be on separate lines when using the ternary operator.

Types: Boolean

Example

"disallowMultiLineTernary": true
Valid
var foo = (a === b) ? 1 : 2;
Invalid
var foo = (a === b)
  ? 1
  : 2;
Rule source
Test source