Alter no-mixed-operators rule

Change the rule for mixed operators to allow basic arithmetic and
boolean logic.
This commit is contained in:
Hornwitser committed 2020-10-23 19:05:12 +02:00
1 parent a84f2d5eb6
commit fbbaf3dd3a
1 file changed
+10 -1
+10 -1
View File
@@ -150,7 +150,16 @@ module.exports = {
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-mixed-operators": "warn",
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["in", "instanceof"],
],
},
],
"no-mixed-requires": "error",
"no-multi-assign": "error",
"no-multi-spaces": "error",