File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 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
1212
1313``` js
1414var 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*/
1715var foo = (a && b) || c || d; /* GOOD*/
1816var foo = a && (b || c || d); /* GOOD*/
1917```
@@ -32,17 +30,6 @@ will generate
32301: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
4835This rule checks ` BinaryExpression ` , ` LogicalExpression ` and ` ConditionalExpression ` .
You can’t perform that action at this time.
0 commit comments