From 6a87949a9ab866d9ddee9b6747106d796a1ed014 Mon Sep 17 00:00:00 2001 From: Raphaelle Cantin Date: Fri, 20 Sep 2024 10:11:51 +0100 Subject: [PATCH] Changes to base config to support prismicio/types --- config/tsconfig-base.json | 20 ++++++++++++++++++++ tsconfig.base.json | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 config/tsconfig-base.json diff --git a/config/tsconfig-base.json b/config/tsconfig-base.json new file mode 100644 index 00000000..c981a9c1 --- /dev/null +++ b/config/tsconfig-base.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "allowJs": false, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "incremental": true, + "isolatedModules": true, + "jsx": "preserve", + "lib": ["esnext"], + "noEmit": true, + "noFallthroughCasesInSwitch": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "strict": false, + "strictNullChecks": true, + "target": "es6" + }, + "exclude": ["/**/node_modules"], + "include": ["/**/*.ts", "/**/*.tsx"] +} diff --git a/tsconfig.base.json b/tsconfig.base.json index 095b8f7b..ed96dbc5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2,6 +2,8 @@ "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { "noEmit": true, + "moduleResolution": "node", + "module": "esnext", "forceConsistentCasingInFileNames": true }, "exclude": ["node_modules"],