code: function checkClass(node) {
              if (!node.superClass) {
                  return;
              }
  
              /*
               * If `node.superClass` is a LeftHandSideExpression, parentheses are extra.
               * Otherwise, parentheses are needed.
               */
              const hasExtraParens = precedence(node.superClass) > PRECEDENCE_OF_UPDATE_EXPR
                  ? hasExcessParens(node.superClass)
                  : hasDoubleExcessParens(node.superClass);
  
              if (hasExtraParens) {
                  report(node.superClass);
              }
          }
docs: Check the parentheses around the super class of the given class definition.
  @param {ASTNode} node The node of class declarations to check.
  @returns {void}