Because @standardjs among others enforces safe & cleaner low-semicolon style.
-
-
1. Don't start a line with ( or [, and now `, 2. Code normally. Again this is something you haven't had to to think about in a long long time, if a linter has been used(which it should be on every team)
-
You also need < if using jsx
-
What about class properties?https://github.com/tc39/ecma262/pull/1062#issuecomment-357089404 …
-
the whole thread is about class properties introducing more ASI issues :)
-
Yeah I know, which is why I mentioned them. It's not just ( [ ` < as a lot of people think.
-
Of those new examples, the worst one isn't fixed by always using semicolons. I can see people trying to put `async` on a separate line, especially once decorators get in.
-
That issue would have been fixed by making semis mandatory in classes, which is perhaps what we should have done.
-
Perhaps TC39 should make that a recommendation to themselves then

- 30 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.