export function formatCode()

in src/common/helper.js [81:95]


export function formatCode(code) {
  return ensurePrettier().then(() => {
    return prettier.format(code, {
      singleQuote: true,
      tabWidth: 2,
      printWidth: 80,
      semi: true,
      trailingComma: 'none',
      // tabWidth: +this.formatCodeSettings.tabSize,
      // printWidth: +this.formatCodeSettings.maxLineWidth,
      parser: store.typeCheck ? 'typescript' : 'babel',
      plugins: prettierPlugins
    });
  });
}