Skip to content

Commit 5751ee7

Browse files
committed
wip: add tests and allow top level await
1 parent 85c1426 commit 5751ee7

23 files changed

+8260
-33
lines changed

tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@
940940
}
941941
},
942942
{
943-
"type": "Keyword",
943+
"type": "Null",
944944
"value": "null",
945945
"range": [
946946
46,
@@ -976,7 +976,7 @@
976976
}
977977
},
978978
{
979-
"type": "Keyword",
979+
"type": "Null",
980980
"value": "null",
981981
"range": [
982982
53,
@@ -1516,7 +1516,7 @@
15161516
}
15171517
},
15181518
{
1519-
"type": "Keyword",
1519+
"type": "Null",
15201520
"value": "null",
15211521
"range": [
15221522
136,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"svelteConfig": {
3+
"compilerOptions": {
4+
"experimental": {
5+
"async": true
6+
}
7+
}
8+
},
9+
"parserOptions": {
10+
"ecmaVersion": 2022,
11+
"sourceType": "module"
12+
}
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
import MyApp from './MyApp.svelte';
3+
</script>
4+
5+
<svelte:boundary>
6+
<MyApp />
7+
8+
{#snippet pending()}
9+
<p>loading...</p>
10+
{/snippet}
11+
</svelte:boundary>

0 commit comments

Comments
 (0)