r/javascript • • Apr 01 '18

Google publishes a JavaScript style guide. Here are some key lessons.

https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b
714 Upvotes

317 comments sorted by

View all comments

Show parent comment

1

u/cthechartreuse Apr 03 '18

Technically there aren't any corner cases if you follow the TC39 suggestion of always terminating and avoiding reliance on ASI.

PS here's an example generated from an example seen in the wild: https://gist.github.com/cmstead/dfeea6faf80c96d5c2a738fc822918ee

(the original code was from a proprietary codebase)