Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

multiline-ternary

- Enforce newlines between operands of ternary expressions

This rule enforces or disallows newlines between operands of a ternary expression. Note: The location of the operators is not enforced by this rule. Please see the operator-linebreak rule if you are interested in enforcing the location of the operators themselves.

What ESLint should do when it catches the rule break

Show a warning

Options

always

Rule examples

You can check them out here.