Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export function parseForESLint(
extractTokens(ctx);
analyzeStoreScope(resultScript.scopeManager!);
analyzeReactiveScope(resultScript.scopeManager!);
analyzeStoreScope(resultScript.scopeManager!); // for reactive vars

// Add $$xxx variable
for (const $$name of ["$$slots", "$$props", "$$restProps"]) {
Expand Down
13 changes: 13 additions & 0 deletions tests/fixtures/parser/ast/reactive-with-store01-input.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script>
import { writable } from "svelte/store";

const bar = {
foo : writable(0),
};

$: ({ foo } = bar);

$: baz = $foo;
</script>

{baz}
Loading