I enforce semicolons via eslint. If I don't, then I find myself writing some lines with and some lines without which has made it more distracting for coworkers (Are you using it or not?!)
I did not know about ASI so this was very helpful. On larger teams, the rule has been - doesn't matter as long as we're consistent.
Consistency among any styling choice is always going to be the most important decision!
Styling choices are irrelevant unless they're consistent.
I find myself preferring automatic formatters like Prettier over linters to avoid all the headache. When using auto-formatters, one should always make sure everyone else is using the same thing or else git commit logs will be obscured by a ton of semicolon insertions and whitespace, making it hard to read exactly what changed.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I enforce semicolons via eslint. If I don't, then I find myself writing some lines with and some lines without which has made it more distracting for coworkers (Are you using it or not?!)
I did not know about ASI so this was very helpful. On larger teams, the rule has been - doesn't matter as long as we're consistent.
Consistency among any styling choice is always going to be the most important decision!
Styling choices are irrelevant unless they're consistent.
I find myself preferring automatic formatters like Prettier over linters to avoid all the headache. When using auto-formatters, one should always make sure everyone else is using the same thing or else git commit logs will be obscured by a ton of semicolon insertions and whitespace, making it hard to read exactly what changed.