applyConfig(config) {
    const previous = {};
    config.rules.forEach(rule => {
      const isprev = rule.value === "$previous";
      if (rule.type === "rule") {
        const rules = rule.name === "ALL"
          ? Object.keys(this.current)
          : [rule.name];
        rules.forEach(name => this.setOption(name, isprev ? this.previous[name] : rule.value, isprev, previous));
        /* istanbul ignore else */
      }
    });
    this.previous = {
      ...this.previous,
      ...previous
    };
  }
/**
   * Apply the given configuration to this.current. Returns true if the operation resulted in any changes, false otherwise.
   *
   * @param {Object} config - the new config to write onto the current options.
   * @memberof InlineConfig
   */
Apply the given configuration to this.current. Returns true if the operation resulted in any changes, false otherwise.
@param {Object} config - the new config to write onto the current options.
Apply the given configuration to this . current . Returns true if the operation resulted in any changes false otherwise . @param { Object } config - the new config to write onto the current options .
applyConfig(config) {
    const previous = {};
    config.rules.forEach(rule => {
      const isprev = rule.value === "$previous";
      if (rule.type === "rule") {
        const rules = rule.name === "ALL"
          ? Object.keys(this.current)
          : [rule.name];
        rules.forEach(name => this.setOption(name, isprev ? this.previous[name] : rule.value, isprev, previous));
      }
    });
    this.previous = {
      ...this.previous,
      ...previous
    };
  }
applyConfig ( config ) { const previous = { } ; config . rules . forEach ( rule => { const isprev = rule . value === "$previous" ; if ( rule . type === "rule" ) { const rules = rule . name === "ALL" ? Object . keys ( this . current ) : [ rule . name ] ; rules . forEach ( name => this . setOption ( name , isprev ? this . previous [ name ] : rule . value , isprev , previous ) ) ; } } ) ; this . previous = { ... this . previous , ... previous } ; }
Apply the given configuration to this.current.
Apply the given configuration to this . current .
/* istanbul ignore else */