lib/rules/no-extra-parens.js
function checkSpreadOperator(node) {
            const hasExtraParens = precedence(node.argument) >= PRECEDENCE_OF_ASSIGNMENT_EXPR
                ? hasExcessParens(node.argument)
                : hasDoubleExcessParens(node.argument);

            if (hasExtraParens) {
                report(node.argument);
            }
        }
function checkSpreadOperator(node) {
            const hasExtraParens = precedence(node.argument) >= PRECEDENCE_OF_ASSIGNMENT_EXPR
                ? hasExcessParens(node.argument)
                : hasDoubleExcessParens(node.argument);

            if (hasExtraParens) {
                report(node.argument);
            }
        }
function checkSpreadOperator ( node ) { const hasExtraParens = precedence ( node . argument ) >= PRECEDENCE_OF_ASSIGNMENT_EXPR ? hasExcessParens ( node . argument ) : hasDoubleExcessParens ( node . argument ) ; if ( hasExtraParens ) { report ( node . argument ) ; } }
Check the parentheses around the argument of the given spread operator.
@param {ASTNode} node The node of spread elements/properties to check.
@returns {void}
Check the parentheses around the argument of the given spread operator .