trailingComma: 'all'
does not work when using rest operator in destructuring assignment
#3883
Labels
lang:javascript
Issues affecting JS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:question
Questions and support requests. Please use Stack Overflow for them, not the issue tracker.
Prettier 1.10.2
Playground link
Input:
Output:
Expected behavior:
Should add trailing comma to
...otherProps
.Saw some discussion about it here, but the fact is it's definitely inconsistent as it is as removing the rest operator results in comma being there.
The text was updated successfully, but these errors were encountered: