Skip to content

Commit f6d4e4c

Browse files
authored
fix: svelte/valid-compile to use verbatimModuleSyntax to work with TS v5.5. (#797)
See comment #790 (comment)
1 parent df947a7 commit f6d4e4c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/tough-jobs-rest.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-svelte": patch
3+
---
4+
5+
fix: `svelte/valid-compile` to use verbatimModuleSyntax to work with TS v5.5.

packages/eslint-plugin-svelte/src/shared/svelte-compile-warns/transform/typescript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export function transform(
3636
module: ts.ModuleKind.ESNext,
3737
importsNotUsedAsValues: ts.ImportsNotUsedAsValues.Preserve,
3838
preserveValueImports: true,
39+
verbatimModuleSyntax: true,
3940
sourceMap: true
4041
}
4142
});

0 commit comments

Comments
 (0)