function isVueClassAttribute(node, classRegex) {
  const re = new RegExp(classRegex);
  let name = '';
  switch (true) {
    case node.key && node.key.name && re.test(node.key.name):
      // class="vue-classes-as-litteral"
      return true;
    case node.key &&
      node.key.name &&
      node.key.name.name &&
      node.key.argument &&
      node.key.argument.name &&
      /^bind$/.test(node.key.name.name) &&
      re.test(node.key.argument.name):
      // v-bind:class="vue-classes-as-bind"
      // :class="vue-classes-as-bind"
      return true;
    default:
      return false;
  }
}
Find out if node is `class`

@param {ASTNode} node The AST node being checked
@param {String} classRegex Regex to test the attribute that is being checked against
@returns {Boolean}