From 00fa4eeb82d0cd700df26ba5f7e0ec011781adb1 Mon Sep 17 00:00:00 2001 From: Guillaume Humbert Date: Thu, 9 Mar 2023 15:09:36 +0100 Subject: [PATCH] Use new `verbatimModuleSyntax` setting for TS v5 --- bases/strictest.json | 2 +- bases/svelte.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bases/strictest.json b/bases/strictest.json index 8ade1b3..61559d0 100644 --- a/bases/strictest.json +++ b/bases/strictest.json @@ -12,7 +12,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, - "importsNotUsedAsValues": "error", + "verbatimModuleSyntax": true, "checkJs": true, "esModuleInterop": true, diff --git a/bases/svelte.json b/bases/svelte.json index 21b0613..bc4a426 100644 --- a/bases/svelte.json +++ b/bases/svelte.json @@ -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.