We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa6533 commit 8c562dbCopy full SHA for 8c562db
src/parser/analyze-type/index.ts
@@ -54,6 +54,8 @@ function appendDeclareSvelteVarsTypesFromAST(
54
parent !== result.ast ||
55
node.body.type !== "ExpressionStatement" ||
56
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
59
(node.body.expression.left.type !== "Identifier" &&
60
node.body.expression.left.type !== "ArrayPattern" &&
61
node.body.expression.left.type !== "ObjectPattern" &&
0 commit comments