code: function loadLegacyConfigFile(filePath) {
      debug(`Loading config file: ${filePath}`);
  
      // lazy load YAML to improve performance when not used
      const yaml = require("js-yaml");
  
      try {
          return yaml.safeLoad(stripComments(readFile(filePath))) || /* istanbul ignore next */ {};
      } catch (e) {
          debug(`Error reading YAML file: ${filePath}`);
          e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`;
          throw e;
      }
  }
docs: Loads a legacy (.eslintrc) configuration from a file.
  @param {string} filePath The filename to load.
  @returns {Object} The configuration object from the file.
  @throws {Error} If the file cannot be read.
  @private