Skip to content

Commit

Permalink
Use new verbatimModuleSyntax setting for TS v5
Browse files Browse the repository at this point in the history
  • Loading branch information
acidoxee committed Mar 9, 2023
1 parent 4ca4143 commit 00fa4ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bases/strictest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,

"importsNotUsedAsValues": "error",
"verbatimModuleSyntax": true,
"checkJs": true,

"esModuleInterop": true,
Expand Down
2 changes: 1 addition & 1 deletion bases/svelte.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Svelte Preprocess cannot figure out whether you have a value or a type, so tell TypeScript
to enforce using `import type` instead of `import` for Types.
*/
"importsNotUsedAsValues": "error",
"verbatimModuleSyntax": true,
/**
TypeScript doesn't know about import usages in the template because it only sees the
script of a Svelte file. Therefore preserve all value imports. Requires TS 4.5 or higher.
Expand Down

0 comments on commit 00fa4ee

Please sign in to comment.