The rules are not that many, you can omit semicolons everywhere except 1. Before open square bracket 2. Before open parenthesis.
That's it, those are the only 2 edge cases.
That's it, those are the only 2 edge cases.
> As new syntactic features are added to ECMAScript, additional grammar productions could be added that cause lines relying on automatic semicolon insertion preceding them to change grammar productions when parsed.
So really, the rules are “there are currently 2 exceptions and an infinite number allowed to be added at any time”. To me, that’s worth letting prettier auto-insert semicolons when I hit save.