Skip to content

Commit 1d39f69

Browse files
authored
docs: remove confusing examples for no-mixed-operators (#15875)
Refs #15870
1 parent 3071d76 commit 1d39f69

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/src/rules/no-mixed-operators.md

-13
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ This rule warns when different operators are used consecutively without parenthe
1212

1313
```js
1414
var foo = a && b || c || d; /*BAD: Unexpected mix of '&&' and '||'.*/
15-
var foo = a && b ? c : d; /*BAD: Unexpected mix of '&&' and '?:'.*/
16-
var foo = (a && b) ? c : d; /*GOOD*/
1715
var foo = (a && b) || c || d; /*GOOD*/
1816
var foo = a && (b || c || d); /*GOOD*/
1917
```
@@ -32,17 +30,6 @@ will generate
3230
1:18 Unexpected mix of '&&' and '||'. (no-mixed-operators)
3331
```
3432

35-
```js
36-
var foo = a && b ? c : d;
37-
```
38-
39-
will generate
40-
41-
```shell
42-
1:13 Unexpected mix of '&&' and '?:'. (no-mixed-operators)
43-
1:18 Unexpected mix of '&&' and '?:'. (no-mixed-operators)
44-
```
45-
4633
## Rule Details
4734

4835
This rule checks `BinaryExpression`, `LogicalExpression` and `ConditionalExpression`.

0 commit comments

Comments
 (0)