resolve.js
function filterValidRule(rule) {
  return (rule.hasOwnProperty('match')&&typeof rule.match === "object")
  && (rule.hasOwnProperty('use') && (
    typeof rule.use === "object"
    || typeof rule.use === "function"
  ))
  && (
    (rule.match.hasOwnProperty('request'))
    || (rule.match.hasOwnProperty('base'))
  )
}
function filterValidRule(rule) {
  return (rule.hasOwnProperty('match')&&typeof rule.match === "object")
  && (rule.hasOwnProperty('use') && (
    typeof rule.use === "object"
    || typeof rule.use === "function"
  ))
  && (
    (rule.match.hasOwnProperty('request'))
    || (rule.match.hasOwnProperty('base'))
  )
}
function filterValidRule ( rule ) { return ( rule . hasOwnProperty ( 'match' ) && typeof rule . match === "object" ) && ( rule . hasOwnProperty ( 'use' ) && ( typeof rule . use === "object" || typeof rule . use === "function" ) ) && ( ( rule . match . hasOwnProperty ( 'request' ) ) || ( rule . match . hasOwnProperty ( 'base' ) ) ) }
Filter rules with `use` prop
Filter rules with use prop