lib/rules/no-extra-parens.js
function isNewExpressionWithParens(newExpression) {
            const lastToken = sourceCode.getLastToken(newExpression);
            const penultimateToken = sourceCode.getTokenBefore(lastToken);

            return newExpression.arguments.length > 0 || astUtils.isOpeningParenToken(penultimateToken) && astUtils.isClosingParenToken(lastToken);
        }
function isNewExpressionWithParens(newExpression) {
            const lastToken = sourceCode.getLastToken(newExpression);
            const penultimateToken = sourceCode.getTokenBefore(lastToken);

            return newExpression.arguments.length > 0 || astUtils.isOpeningParenToken(penultimateToken) && astUtils.isClosingParenToken(lastToken);
        }
function isNewExpressionWithParens ( newExpression ) { const lastToken = sourceCode . getLastToken ( newExpression ) ; const penultimateToken = sourceCode . getTokenBefore ( lastToken ) ; return newExpression . arguments . length > 0 || astUtils . isOpeningParenToken ( penultimateToken ) && astUtils . isClosingParenToken ( lastToken ) ; }
Determines if a constructor function is newed-up with parens
@param {ASTNode} newExpression - The NewExpression node to be checked.
@returns {boolean} True if the constructor is called with parens.
@private
Determines if a constructor function is newed - up with parens