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 upDestructuring with empty sections throws off standard into an endless loop #1243
Comments
This comment has been minimized.
This comment has been minimized.
|
I'm not exactly sure on what you are trying to do with the commas there The only reason I can see to have empty elements is to skip certain elements and then get a value at the end. But in your case, you don't have a final variable, and this you could just write it like this? Promise.all([homepage, litHtml, layout]).then(([homepageHtml]) => { |
This comment has been minimized.
This comment has been minimized.
|
Darn, that is of course correct. Thanks for your help. |
lukasoppermann
closed this
Jan 29, 2019
lock
bot
locked as resolved and limited conversation to collaborators
Apr 29, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
lukasoppermann commentedJan 27, 2019
What version of standard?
standard --parser typescript-eslint-parser --plugin typescriptWhat operating system, Node.js, and npm version?
What actually happened?
I have this line of code:
Promise.all([homepage, litHtml, layout]).then(([homepageHtml, , ]) => {The error I get is
Expected consistent spacing. However if I remove the space after the last comma, I getspace missing.So I am at a loss at what to do. Thanks for your help.