Semicolons in JavaScript: A preference
Kent C. Dodds

I agree with omitting semi-colons. My view is that add it removes ambiguity for the JavaScript Engine, but it’s clear for us developers. Most developer these days use transpilers and bundlers which will add the semi-colons back in for you. This gives you the assurance you are using JavaScript ‘safely’.

Adding semi-colons is just a matter of syntax, it does not make you a better or worse developer. So, why not omit them, it makes code look cleaner and easier to read. I’m in favour of writing minimal code to get the job done. So let’s focus on the logic and leave these petty syntax rules to our build tools.