File tree 1 file changed +0
-13
lines changed
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ This rule warns when different operators are used consecutively without parenthe
12
12
13
13
``` js
14
14
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*/
17
15
var foo = (a && b) || c || d; /* GOOD*/
18
16
var foo = a && (b || c || d); /* GOOD*/
19
17
```
@@ -32,17 +30,6 @@ will generate
32
30
1:18 Unexpected mix of ' &&' and ' ||' . (no-mixed-operators)
33
31
```
34
32
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
-
46
33
## Rule Details
47
34
48
35
This rule checks ` BinaryExpression ` , ` LogicalExpression ` and ` ConditionalExpression ` .
You can’t perform that action at this time.
0 commit comments