website/playground/PrettierFormat.js/PrettierFormat/format
class PrettierFormat:  format() {
    const {
      worker,
      code,
      options,
      debugAst: ast,
      debugDoc: doc,
      debugComments: comments,
      reformat,
    } = this.props;

    worker
      .format(code, options, { ast, doc, comments, reformat })
      .then((result) => this.setState(result));
  }