src/utilities/disableRules.js
async function disableRules(rules) {
  return Object.keys(rules)
    .reduce((collection, rule) => ({
      ...collection,
      [rule]: OFF,
    }), {});
}
async function disableRules(rules) {
  return Object.keys(rules)
    .reduce((collection, rule) => ({
      ...collection,
      [rule]: OFF,
    }), {});
}
async function disableRules ( rules ) { return Object . keys ( rules ) . reduce ( ( collection , rule ) => ( { ... collection , [ rule ] : OFF , } ) , { } ) ; }
Automatically disable all rules given a rules list

@param {Object} rules - Rules to disable
@returns {Promise} A promise to return a rules list with each rule disabled
Automatically disable all rules given a rules list