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 upEnforce "Never start a line with ( or [" #295
Comments
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Never starting a line with a console.log('hi')
[1, 2, 3].forEach(console.log)
|
feross
closed this
Oct 18, 2015
This comment has been minimized.
This comment has been minimized.
|
For the record, you can add a leading semicolon in this situation, if desired: console.log('hi')
;[1, 2, 3].forEach(console.log)
|
This comment has been minimized.
This comment has been minimized.
|
Also for the record, you can test this stuff out easily on http://standardjs.com/demo.html |
dcousens
added
the
question
label
Oct 18, 2015
This comment has been minimized.
This comment has been minimized.
|
interesting... i just tripped into a JS error because of this and standard didnt catch it. Guess i was on an old version |
This comment has been minimized.
This comment has been minimized.
|
@rstacruz if you have a test case where the current version doesn't catch it, please share so we can fix that. |
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.
caesarsol commentedOct 17, 2015
Don't you think the rule:
should be enforced by the
eslintconfiguration?