Add trailing comma support for multiline exports (#168)

```
echo "export { aaaaaaaa, bbbbbb, cccccc, dddddddd, eeeeeee, fffffffff, ggggggggg } from 'vjeux';" | ./bin/prettier.js --stdin --trailing-comma
export {
  aaaaaaaa,
  bbbbbb,
  cccccc,
  dddddddd,
  eeeeeee,
  fffffffff,
  ggggggggg,
} from "vjeux";
```
master
Christopher Chedeau 2017-01-13 10:00:46 -08:00 committed by James Long
parent 3dcf46c77c
commit 958ea215a6
1 changed files with 1 additions and 0 deletions

View File

@ -1892,6 +1892,7 @@ function printExportDeclaration(path, options, print) {
path.map(print, "specifiers"))
])
),
ifBreak(options.trailingComma ? "," : ""),
options.bracketSpacing ? line : softline,
"}"
]))