mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Alter no-mixed-operators rule
Change the rule for mixed operators to allow basic arithmetic and boolean logic.
This commit is contained in:
1 parent
a84f2d5eb6
commit
fbbaf3dd3a
1 file changed
+10
-1
+10
-1
@@ -150,7 +150,16 @@ module.exports = {
|
|||||||
"no-lonely-if": "error",
|
"no-lonely-if": "error",
|
||||||
"no-loop-func": "error",
|
"no-loop-func": "error",
|
||||||
"no-magic-numbers": "off",
|
"no-magic-numbers": "off",
|
||||||
"no-mixed-operators": "warn",
|
"no-mixed-operators": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"groups": [
|
||||||
|
["&", "|", "^", "~", "<<", ">>", ">>>"],
|
||||||
|
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
|
||||||
|
["in", "instanceof"],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
"no-mixed-requires": "error",
|
"no-mixed-requires": "error",
|
||||||
"no-multi-assign": "error",
|
"no-multi-assign": "error",
|
||||||
"no-multi-spaces": "error",
|
"no-multi-spaces": "error",
|
||||||
|
|||||||
Reference in new issue
Block a user