lib/rules/no-extra-parens.js
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);
            }
        }
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);
            }
        }
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 ) ; } }
Check the parentheses around the super class of the given class definition.
@param {ASTNode} node The node of class declarations to check.
@returns {void}
Check the parentheses around the super class of the given class definition .