From f21bad2680406a2671b877f8dba47f4475d0cc64 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Fri, 3 Jul 2020 21:51:26 +0200 Subject: [PATCH] Docs: fix description for `never` in multiline-ternary (fixes #13368) (#13452) --- docs/rules/multiline-ternary.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/rules/multiline-ternary.md b/docs/rules/multiline-ternary.md index e9461a1ca08..0c38bf7d3f1 100644 --- a/docs/rules/multiline-ternary.md +++ b/docs/rules/multiline-ternary.md @@ -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 @@ -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