Skip to content

Commit

Permalink
Docs: fix description for never in multiline-ternary (fixes #13368) (
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Jul 3, 2020
1 parent ada2c89 commit f21bad2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/rules/multiline-ternary.md
Expand Up @@ -27,7 +27,7 @@ This rule has a string option:

* `"always"` (default) enforces newlines between the operands of a ternary expression.
* `"always-multiline"` enforces newlines between the operands of a ternary expression if the expression spans multiple lines.
* `"never"` disallows newlines between the operands of a ternary expression (enforcing that the entire ternary expression is on one line).
* `"never"` disallows newlines between the operands of a ternary expression.

### always

Expand Down Expand Up @@ -134,6 +134,10 @@ Examples of **correct** code for this rule with the `"never"` option:
foo > bar ? value1 : value2;

foo > bar ? (baz > qux ? value1 : value2) : value3;

foo > bar ? (
baz > qux ? value1 : value2
) : value3;
```

## When Not To Use It
Expand Down

0 comments on commit f21bad2

Please sign in to comment.