diff --git a/eslintrc.json b/eslintrc.json index dfa52118..f85e302c 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -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",