Skip to content

Commit 8c562db

Browse files
committed
add comment
1 parent 6aa6533 commit 8c562db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parser/analyze-type/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function appendDeclareSvelteVarsTypesFromAST(
5454
parent !== result.ast ||
5555
node.body.type !== "ExpressionStatement" ||
5656
node.body.expression.type !== "AssignmentExpression" ||
57+
// Must be a pattern that can be used in the LHS of variable declarations.
58+
// https://github.com/ota-meshi/svelte-eslint-parser/issues/213
5759
(node.body.expression.left.type !== "Identifier" &&
5860
node.body.expression.left.type !== "ArrayPattern" &&
5961
node.body.expression.left.type !== "ObjectPattern" &&

0 commit comments

Comments
 (0)