From 1d39f698a22e2995bbfcf90b6dafd196a173092a Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Fri, 13 May 2022 02:42:58 +0200 Subject: [PATCH] docs: remove confusing examples for no-mixed-operators (#15875) Refs #15870 --- docs/src/rules/no-mixed-operators.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/src/rules/no-mixed-operators.md b/docs/src/rules/no-mixed-operators.md index 48f8849a70b..831bd3626ef 100644 --- a/docs/src/rules/no-mixed-operators.md +++ b/docs/src/rules/no-mixed-operators.md @@ -12,8 +12,6 @@ This rule warns when different operators are used consecutively without parenthe ```js var foo = a && b || c || d; /*BAD: Unexpected mix of '&&' and '||'.*/ -var foo = a && b ? c : d; /*BAD: Unexpected mix of '&&' and '?:'.*/ -var foo = (a && b) ? c : d; /*GOOD*/ var foo = (a && b) || c || d; /*GOOD*/ var foo = a && (b || c || d); /*GOOD*/ ``` @@ -32,17 +30,6 @@ will generate 1:18 Unexpected mix of '&&' and '||'. (no-mixed-operators) ``` -```js -var foo = a && b ? c : d; -``` - -will generate - -```shell -1:13 Unexpected mix of '&&' and '?:'. (no-mixed-operators) -1:18 Unexpected mix of '&&' and '?:'. (no-mixed-operators) -``` - ## Rule Details This rule checks `BinaryExpression`, `LogicalExpression` and `ConditionalExpression`.