We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d0b44 commit 1aa26dfCopy full SHA for 1aa26df
1 file changed
docs/src/rules/multiline-ternary.md
@@ -18,9 +18,14 @@ var foo = bar > baz ? value1 : value2;
18
The above can be rewritten as the following to improve readability and more clearly delineate the operands:
19
20
```js
21
+
22
var foo = bar > baz ?
23
value1 :
24
value2;
25
26
+var foo = bar > baz
27
+ ? value1
28
+ : value2;
29
```
30
31
## Rule Details
@@ -74,6 +79,12 @@ foo > bar ?
74
79
75
80
value2) :
76
81
value3;
82
83
+foo > bar
84
+ ? (baz > qux
85
86
+ : value2)
87
+ : value3;
77
88
78
89
90
:::
@@ -126,6 +137,12 @@ foo > bar &&
126
137
bar > baz ?
127
138
128
139
140
141
142
+ ? baz > qux
143
144
+ : value2
145
129
146
130
147
131
148
0 commit comments