function isValidJSXAttribute(node, classRegex) {
  if (!isClassAttribute(node, classRegex)) {
    // Only run for class[Name] attributes
    return false;
  }
  if (!isLiteralAttributeValue(node)) {
    // No support for dynamic or conditional classnames
    return false;
  }
  return true;
}
Find out if the node is a valid candidate for our rules

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