From 70600185c15943e88842e496483bb4c0230a3beb Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 28 May 2024 23:19:11 +0300 Subject: [PATCH] chore: lint --- packages/keyword-add-array/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/keyword-add-array/index.js b/packages/keyword-add-array/index.js index 0964e10..7a774c8 100644 --- a/packages/keyword-add-array/index.js +++ b/packages/keyword-add-array/index.js @@ -34,7 +34,8 @@ export default function keywordAddArray(Parser) { oldParenAssign = refDestructuringErrors.parenthesizedAssign; oldTrailingComma = refDestructuringErrors.trailingComma; oldDoubleProto = refDestructuringErrors.doubleProto; - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1; + refDestructuringErrors.parenthesizedAssign = -1; + refDestructuringErrors.trailingComma = -1; } else { refDestructuringErrors = new DestructuringErrors(); ownDestructuringErrors = true; @@ -61,8 +62,11 @@ export default function keywordAddArray(Parser) { if (this.type === tt.eq) left = this.toAssignable(left, false, refDestructuringErrors); - if (!ownDestructuringErrors) - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1; + if (!ownDestructuringErrors) { + refDestructuringErrors.parenthesizedAssign = -1; + refDestructuringErrors.trailingComma = -1; + refDestructuringErrors.doubleProto = -1; + } if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;