Skip to content

Commit

Permalink
Docs: no-mixed-operators - fixes eslint#9962
Browse files Browse the repository at this point in the history
no-mixed-operators rule - allowSamePrecedence option is incorrectly documented.
  • Loading branch information
munkychop committed Feb 9, 2018
1 parent bf3d494 commit ffd712b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/no-mixed-operators.md
Expand Up @@ -134,8 +134,8 @@ Examples of **incorrect** code for this rule with `{"allowSamePrecedence": false
```js
/*eslint no-mixed-operators: ["error", {"allowSamePrecedence": false}]*/

// + and - have the same precedence.
var foo = a + b - c;
// + and * have different precedence.
var foo = a + b * c;
```

## When Not To Use It
Expand All @@ -144,4 +144,4 @@ If you don't want to be notified about mixed operators, then it's safe to disabl

## Related Rules

* [no-extra-parens](no-extra-parens.md)
* [no-extra-parens](no-extra-parens.md)

0 comments on commit ffd712b

Please sign in to comment.