{
  "version": 3,
  "sources": ["../../src/code-editor/prettierFormatter.ts"],
  "sourcesContent": ["import type { Options, Plugin } from \"prettier\"\nimport * as babel from \"prettier/plugins/babel\"\nimport * as estree from \"prettier/plugins/estree\"\nimport * as typescript from \"prettier/plugins/typescript\"\nimport * as prettier from \"prettier/standalone\"\nimport { CODE_FORMATTING_TAB_WIDTH } from \"./formatting.ts\"\n\nexport async function formatCode(\n\tcontent: string,\n\tlanguageId: string | \"json\" | \"typescript\",\n\textraOptions?: Options,\n): Promise<string> {\n\treturn prettier.format(content, {\n\t\tparser: languageId === \"json\" ? \"json\" : \"typescript\",\n\t\tplugins: [typescript as Plugin, babel as Plugin, estree as Plugin],\n\t\ttabWidth: CODE_FORMATTING_TAB_WIDTH,\n\t\tsemi: false,\n\t\ttrailingComma: \"es5\",\n\t\t...extraOptions,\n\t})\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;AAOA,eAAsB,WACrB,SACA,YACA,cACkB;AAClB,SAAgB,GAAO,SAAS;AAAA,IAC/B,QAAQ,eAAe,SAAS,SAAS;AAAA,IACzC,SAAS,CAAC,oBAAsB,eAAiB,cAAgB;AAAA,IACjE,UAAU;AAAA,IACV,MAAM;AAAA,IACN,eAAe;AAAA,IACf,GAAG;AAAA,EACJ,CAAC;AACF;",
  "names": []
}
