diff --git a/tools/eslint-rules/align-multiline-assignment.js b/tools/eslint-rules/align-multiline-assignment.js index 69f1f33d4d184f..80896b5e96296d 100644 --- a/tools/eslint-rules/align-multiline-assignment.js +++ b/tools/eslint-rules/align-multiline-assignment.js @@ -7,7 +7,7 @@ //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ -function getBinaryExpressionStarts(binaryExpression, starts = []) { +function getBinaryExpressionStarts(binaryExpression, starts) { function getStartsFromOneSide(side, starts) { starts.push(side.loc.start); if (side.type === 'BinaryExpression') { @@ -29,7 +29,7 @@ function checkExpressionAlignment(expression) { switch (expression.type) { case 'BinaryExpression': - var starts = getBinaryExpressionStarts(expression); + var starts = getBinaryExpressionStarts(expression, []); var startLine = starts[0].line; const startColumn = starts[0].column; starts.forEach((loc) => {