website/static/worker.js/formatCode
function formatCode(text, options) {
  try {
    return prettier.formatWithCursor(text, options);
  } catch (e) {
    if (e.constructor && e.constructor.name === "SyntaxError") {
      // Likely something wrong with the user's code
      return { formatted: String(e) };
    }
    // Likely a bug in Prettier
    // Provide the whole stack for debugging
    return { formatted: e.stack || String(e) };
  }
}