code: function(node) {
        if (utils.isExplicitComponent(node)) {
          return true;
        }
  
        if (!node.superClass) {
          return false;
        }
        return new RegExp('^(' + pragma + '\\.)?(Pure)?Component$').test(sourceCode.getText(node.superClass));
      }
docs: Check if the node is a React ES6 component
  
  @param {ASTNode} node The AST node being checked.
  @returns {Boolean} True if the node is a React ES6 component, false if not