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 upSemicolon before IIFE should be mandatory #1123
Comments
This comment has been minimized.
This comment has been minimized.
CiQL
commented
May 9, 2018
|
There already exists a rule for this:
I don't know why it doesn't give you any warnings or errors, though. |
This comment has been minimized.
This comment has been minimized.
lukehutton
commented
May 24, 2018
|
I don't get any errors when have code like this in separate js file, shouldn't there be error for no-unexpected-multiline ?
|
This comment has been minimized.
This comment has been minimized.
|
@mattisback What version of Using
I think you're likely using an old version of |
feross
added
the
need more info
label
May 25, 2018
This comment has been minimized.
This comment has been minimized.
|
@lukehutton You're referring to a separate issue. See #786 |
no-response
bot
closed this
Jun 1, 2018
This comment has been minimized.
This comment has been minimized.
no-response
bot
commented
Jun 1, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Aug 30, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.

MatthewCochrane commentedMay 3, 2018
The following code produces a rather cryptic javascript error when run
Here's the console output you get when you run it: (try running it in your browser now (ctrl-shift-j))
Eslint does not give any warnings or errors. The standard mode forces us to omit semicolons, so I propose that a rule to help avoid this case should be added to the standard. Those with more experience than me can probably better suggest an implementation.
A starting point could be: