src/language-js/print/jsx.js/printJsxSpreadAttribute
function printJsxSpreadAttribute(path, options, print) {
  const node = path.getValue();
  return [
    "{",
    path.call(
      (p) => {
        const printed = ["...", print()];
        const node = p.getValue();
        if (!hasComment(node) || !willPrintOwnComments(p)) {
          return printed;
        }
        return [
          indent([softline, printComments(p, printed, options)]),
          softline,
        ];
      },
      node.type === "JSXSpreadAttribute" ? "argument" : "expression"
    ),
    "}",
  ];
}