code: function generateFormatterExamples(formatterInfo, prereleaseVersion) {
      const output = ejs.render(cat("./templates/formatter-examples.md.ejs"), formatterInfo);
      let filename = "../eslint.github.io/docs/user-guide/formatters/index.md",
          htmlFilename = "../eslint.github.io/docs/user-guide/formatters/html-formatter-example.html";
  
      if (prereleaseVersion) {
          filename = filename.replace("/docs", `/docs/${prereleaseVersion}`);
          htmlFilename = htmlFilename.replace("/docs", `/docs/${prereleaseVersion}`);
          if (!test("-d", path.dirname(filename))) {
              mkdir(path.dirname(filename));
          }
      }
  
      output.to(filename);
      formatterInfo.formatterResults.html.result.to(htmlFilename);
  }
docs: Generates a doc page with formatter result examples
  @param  {Object} formatterInfo Linting results from each formatter
  @param  {string} [prereleaseVersion] The version used for a prerelease. This
  changes where the output is stored.
  @returns {void}