Can someone kindly explain me what it means: “can obfuscate the value of an assignment”?
Does it mean the value assigned is hidden? And how do parentheses help to make it less obscure?
"
13.7 Avoid linebreaks before or after = in an assignment. If your assignment violates max-len, surround the value in parens. eslint operator-linebreak.
Why? Linebreaks surrounding = can obfuscate the value of an assignment.
// bad
const foo =
superLongLongLongLongLongLongLongLongFunctionName();
// bad
const foo
= 'superLongLongLongLongLongLongLongLongString';
// good
const foo = (
superLongLongLongLongLongLongLongLongFunctionName()
);
// good
const foo = 'superLongLongLongLongLongLongLongLongString';