A close friend and I got into an argument a couple days ago because he wholeheartedly believes (ECMAScript) code without semi colons equals bad practice for reasons I understand completely but don't agree with. (we fight about important things like this all the time)
I personally write JavaScript without semi colons and am are very opinionated about it. The same goes for more people here on devtoo. I found that for instance moji has none either.
There is a wide abundance of discussions and people arguing about it on the internet so.
Where exactly in the ECMAScript specification does it say that semi colons are omitted/required or not?
JavaScript explicitly has rules for automatically inserting semicolons. Hence, they aren't necessary.
However, the rules aren't very good, in that they are likely to do the wrong thing.
For example, consider the following:
It doesn't do what you mean, because the semicolon insertion rules say to put a semicolon here:
Your expression's result is lost!
If you set your IDE up to automatically insert semicolons / make your CI tools reject code that would have semicolons inserted automatically, you can avoid these mistakes.