Skip to content

Commit

Permalink
New rule: Disallow mixes of different operators (no-mixed-operators)
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Feb 8, 2017
1 parent f14074a commit 0aba4b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eslintrc.json
Expand Up @@ -80,6 +80,15 @@
"no-label-var": "error",
"no-labels": ["error", { "allowLoop": false, "allowSwitch": false }],
"no-lone-blocks": "error",
"no-mixed-operators": ["error", {
"groups": [
["+", "-", "*", "/", "%", "**"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": true
}],
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
Expand Down

0 comments on commit 0aba4b0

Please sign in to comment.