From 0d6acdf174626aa43a7e8af8afabf174eeecdffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Tue, 2 Apr 2024 01:21:13 -0400 Subject: [PATCH] refactor(workspace): update tsconfig files enable `esmoduleinterop` and `allowsyntheticdefaultimports` --- server/tsconfig.json | 4 +++- tsconfig.json | 13 ++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/server/tsconfig.json b/server/tsconfig.json index 0983841..59430a6 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -4,6 +4,8 @@ "allowJs": true, "outDir": "../out", "noImplicitAny": false, - "verbatimModuleSyntax": false + "verbatimModuleSyntax": false, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true } } diff --git a/tsconfig.json b/tsconfig.json index ca44d8b..5968bd0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,13 @@ { - // https://nuxt.com/docs/guide/concepts/typescript "extends": "./.nuxt/tsconfig.json", + // https://nuxt.com/docs/guide/concepts/typescript "compilerOptions": { "allowJs": true, + "esModuleInterop": true, "noImplicitAny": false, "noImplicitThis": false, - "verbatimModuleSyntax": false - // "paths": { - // "@dbconfig": ["./lib/dbconfig.ts"], - // "@functions": ["./lib/functions.ts"] - // } - } + "verbatimModuleSyntax": false, + "forceConsistentCasingInFileNames": false, + "allowSyntheticDefaultImports": true + }, }