Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSemicolons issue #525
Comments
This comment has been minimized.
This comment has been minimized.
|
Oops, this was totally my fault. I had added |
taoeffect
closed this
May 19, 2016
dcousens
added
the
help wanted
label
May 19, 2016
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
taoeffect commentedMay 19, 2016
•
edited
I've some code:
This results in an error if the
this.timeout(12000)is the first line in the test because of an "ASI" (automatic semicolon insertion) issue.Oddly enough, moving it up to the first line and putting a semicolon there as shown below works and passes the linter:
I don't know why it passes the linter, but I am happy it does because otherwise I would have had to give up on standard.
Perhaps this quirk could be highlighted in the documentation? Seems like something that could drive many JS developers mad, especially now that
async/awaitusage is becoming... wait for it... standard.