lib/util/Components.js
function (node) {
      if (node.superClass) {
        return new RegExp('^(' + pragma + '\\.)?PureComponent$').test(sourceCode.getText(node.superClass));
      }
      return false;
    }
function (node) {
      if (node.superClass) {
        return new RegExp('^(' + pragma + '\\.)?PureComponent$').test(sourceCode.getText(node.superClass));
      }
      return false;
    }
function ( node ) { if ( node . superClass ) { return new RegExp ( '^(' + pragma + '\\.)?PureComponent$' ) . test ( sourceCode . getText ( node . superClass ) ) ; } return false ; }
Checks to see if our component extends React.PureComponent

@param {ASTNode} node The AST node being checked.
@returns {Boolean} True if node extends React.PureComponent, false if not
Checks to see if our component extends React . PureComponent