lib/util/Components.js
function(node) {
      if (utils.isExplicitComponent(node)) {
        return true;
      }

      if (!node.superClass) {
        return false;
      }
      return new RegExp('^(' + pragma + '\\.)?(Pure)?Component$').test(sourceCode.getText(node.superClass));
    }
function(node) {
      if (utils.isExplicitComponent(node)) {
        return true;
      }

      if (!node.superClass) {
        return false;
      }
      return new RegExp('^(' + pragma + '\\.)?(Pure)?Component$').test(sourceCode.getText(node.superClass));
    }
function ( node ) { if ( utils . isExplicitComponent ( node ) ) { return true ; } if ( ! node . superClass ) { return false ; } return new RegExp ( '^(' + pragma + '\\.)?(Pure)?Component$' ) . test ( sourceCode . getText ( node . superClass ) ) ; }
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
Check if the node is a React ES6 component