code: function writeFile(config, format) {
  
      // default is .js
      let extname = ".js";
  
      if (format === "YAML") {
          extname = ".yml";
      } else if (format === "JSON") {
          extname = ".json";
      }
  
      const installedESLint = config.installedESLint;
  
      delete config.installedESLint;
  
      ConfigFile.write(config, `./.eslintrc${extname}`);
      log.info(`Successfully created .eslintrc${extname} file in ${process.cwd()}`);
  
      if (installedESLint) {
          log.info("ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.");
      }
  }
docs: /* istanbul ignore next: hard to test fs function 
  Create .eslintrc file in the current working directory
  @param {Object} config object that contains user's answers
  @param {string} format The file format to write to.
  @returns {void}