code: function getEnabledRules(allRules) {
      return Object.keys(allRules).reduce((map, id) => {
          if (allRules[id] === "error") {
              map[id] = 2
          }
          return map
      }, {})
  }
docs: Get only enabled rules to make the serialized data smaller.
  @param {object} allRules The rule settings.
  @returns {object} The rule settings for the enabled rules.