Skip to content

Commit 2f63cdc

Browse files
authored
fix: svelte type (#19)
* fix: svelte type * Create itchy-seas-sort.md
1 parent 7247f90 commit 2f63cdc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/itchy-seas-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"typescript-eslint-parser-for-extra-files": patch
3+
---
4+
5+
fix: svelte type

src/transform/svelte.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ export function transformForSvelte(
1313
filename: context.filePath,
1414
});
1515

16-
return result.code;
16+
return `/// <reference types="svelte2tsx/svelte-shims" />
17+
18+
${result.code}`;
1719
}

0 commit comments

Comments
 (0)