Disable the no-multi-assign
rule
#222
leroykorterink
started this conversation in
General
Replies: 1 comment 1 reply
-
Chaining the assignment of variables can lead to unexpected results and be difficult to read. (function() {
const foo = bar = 0; // Did you mean `foo = bar == 0`?
bar = 1; // This will not fail since `bar` is not constant.
})();
console.log(bar);
// 1 Please see the documentation of the rule. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a proposal to disable the
no-multi-assign
rule.Beta Was this translation helpful? Give feedback.
All reactions