Skip to content

210825 JS

The switch(input-checkbox) onChange event cannot stopPropagation of click event. To prevent clicking, add a onClick event only for stopPropagation .

babel#

In regards to ; before ( or [ on a newline:
I don't think you'd always need that... it doesn't  seem necessary on that line, for instance.
But maybe for consistency, then?

Yup, that's definitely a real issue, happens a lot, and it's easy to not pick up while coding. So the rule is amazing to have Just wondering why it adds also where it might be unnecessary. I believe, for consistency. I didn't give it much thought before, but I think I agree.
Having to think when you have to do it makes you more easily forget to when you need to... So as a blanket rule to always have it it reduces the mental strain of deciding it. So... Good rule. would add rule again