function ruleWarnToError(ruleConfig) {
  if (ruleConfig === "warn") {
    return "error";
  }

  if (Array.isArray(ruleConfig) && ruleConfig[0] === "warn") {
    ruleConfig = [...ruleConfig];
    ruleConfig[0] = "error";
    return ruleConfig;
  }

  return ruleConfig;
}
/** Gets a rule configuration with warning switched to error.
 *
 * @private
 */
Gets a rule configuration with warning switched to error.
@private
Gets a rule configuration with warning switched to error . @private
function ruleWarnToError(ruleConfig) {
  if (ruleConfig === "warn") {
    return "error";
  }
  if (Array.isArray(ruleConfig) && ruleConfig[0] === "warn") {
    ruleConfig = [...ruleConfig];
    ruleConfig[0] = "error";
    return ruleConfig;
  }
  return ruleConfig;
}
function ruleWarnToError ( ruleConfig ) { if ( ruleConfig === "warn" ) { return "error" ; } if ( Array . isArray ( ruleConfig ) && ruleConfig [ 0 ] === "warn" ) { ruleConfig = [ ... ruleConfig ] ; ruleConfig [ 0 ] = "error" ; return ruleConfig ; } return ruleConfig ; }
Gets a rule configuration with warning switched to error.
Gets a rule configuration with warning switched to error .