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
parent
3dcf46c77c
commit
958ea215a6
|
@ -1892,6 +1892,7 @@ function printExportDeclaration(path, options, print) {
|
|||
path.map(print, "specifiers"))
|
||||
])
|
||||
),
|
||||
ifBreak(options.trailingComma ? "," : ""),
|
||||
options.bracketSpacing ? line : softline,
|
||||
"}"
|
||||
]))
|
||||
|
|
Loading…
Reference in New Issue