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 upNever start a line with `[` - what about nested arrays? #569
Comments
PaulKiddle
changed the title
Never start a _line_ with `[` or never start a _statement_ with it?
Never start a line with `[` - what about nested arrays?
Jul 19, 2016
This comment has been minimized.
This comment has been minimized.
qzb
commented
Jul 19, 2016
•
|
It's not a problem, standard doesn't raise any errors for this example. This rule was made to prevent some situations when omitting semicolons could cause errors, this isn't one of these situations. |
This comment has been minimized.
This comment has been minimized.
|
Yep, there's nothing wrong with the code you posted! |
feross
closed this
Jul 19, 2016
dcousens
added
the
question
label
Jul 22, 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.
PaulKiddle commentedJul 19, 2016
•
edited
The one potential edge case of this rule that I can see causing a problem:
In this case, does the standard have any recommendations for styling this code?