Using chained assignment in declarations is also dangerous because you may accidentally create global variables
Ok, fair point. It’s much harder to fell for this in TypeScript, because you’ll get an instant feedback from the compiler about the undefined variable, but it’s possible nonetheless.
Chained assignments are kind of standard and convenient (more performant as well?), but I agree that their use (especially by less experienced developers) may lead to unwanted side effects.
Anyway, I’m okay with your explanations. It would be nice however if you (or whoever else capable doing it) could extend the description of the rule in Sonar with what you’ve written in your reply, especially the part about unintentional global variables.