Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing comma after rest properties #507

Closed
avocadowastaken opened this issue Jan 29, 2017 · 2 comments
Closed

Trailing comma after rest properties #507

avocadowastaken opened this issue Jan 29, 2017 · 2 comments
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program

Comments

@avocadowastaken
Copy link
Contributor

See eslint/espree#310

Input

const{foo,bar,...rest}=baz;

Expected

const {
  foo,
  bar,
  ...rest
} = baz;

Actual

const {
  foo,
  bar,
  ...rest,
} = baz;

https://jlongster.github.io/prettier/#%7B%22content%22%3A%22const%7Bfoo%2Cbar%2C...rest%7D%3Dbaz%3B%22%2C%22options%22%3A%7B%22printWidth%22%3A20%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3Atrue%2C%22bracketSpacing%22%3Atrue%2C%22doc%22%3Afalse%7D%7D

@vjeux
Copy link
Contributor

vjeux commented Jan 29, 2017

Thanks, I will fix it!

@vjeux
Copy link
Contributor

vjeux commented Jan 29, 2017

#512 fixes it

vjeux added a commit to vjeux/prettier that referenced this issue Jan 29, 2017
vjeux added a commit to vjeux/prettier that referenced this issue Jan 29, 2017
@vjeux vjeux added the type:bug Issues identifying ugly output, or a defect in the program label Jan 29, 2017
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

2 participants