code: function loadConfigFile(file) {
      const filePath = file.filePath;
      let config;
  
      switch (path.extname(filePath)) {
          case '.yaml':
          case '.yml':
              config = loadYAMLConfigFile(filePath);
              break;
  
          default:
              config = loadJSONConfigFile(filePath);
      }
  
      return ConfigOps.merge(ConfigOps.createEmptyConfig(), config);
  }
docs: Loads a configuration file regardless of the source. Inspects the file path
  to determine the correctly way to load the config file.
  @param {Object} file The path to the configuration.
  @returns {Object} The configuration information.
  @private