From 4f194ae7d5175343bcd7d7ddbd6ffe01e8334743 Mon Sep 17 00:00:00 2001 From: Raphaelle Cantin Date: Mon, 1 Jul 2024 17:33:23 +0100 Subject: [PATCH] Tidy config base, add whatever Next wants to add itself --- common/tsconfig.json | 3 +++ config/tsconfig-base.json | 8 +++----- content/webapp/tsconfig.json | 3 +++ identity/webapp/tsconfig.json | 3 +++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/common/tsconfig.json b/common/tsconfig.json index abf4e2b273..0461998d4e 100644 --- a/common/tsconfig.json +++ b/common/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../config/tsconfig-base", + "compilerOptions": { + "module": "commonjs" + }, "exclude": ["node_modules"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] } diff --git a/config/tsconfig-base.json b/config/tsconfig-base.json index b307b9345f..635cfb2a94 100644 --- a/config/tsconfig-base.json +++ b/config/tsconfig-base.json @@ -2,21 +2,19 @@ "compilerOptions": { "allowJs": false, "composite": true, - "downlevelIteration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "incremental": true, "isolatedModules": true, "jsx": "preserve", - "lib": ["dom", "dom.iterable", "esnext"], - "module": "esnext", + "lib": ["esnext"], "moduleResolution": "node", "noEmit": true, - "paths": {}, + "noFallthroughCasesInSwitch": true, "resolveJsonModule": true, "skipLibCheck": true, "strict": false, "strictNullChecks": true, - "target": "es5" + "target": "es6", } } \ No newline at end of file diff --git a/content/webapp/tsconfig.json b/content/webapp/tsconfig.json index f32112eb44..555d03e840 100644 --- a/content/webapp/tsconfig.json +++ b/content/webapp/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../config/tsconfig-base", + "compilerOptions": { + "module": "esnext" + }, "exclude": ["node_modules"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "ts-node": { diff --git a/identity/webapp/tsconfig.json b/identity/webapp/tsconfig.json index f32112eb44..e877671100 100644 --- a/identity/webapp/tsconfig.json +++ b/identity/webapp/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../config/tsconfig-base", + "compilerOptions": { + "module": "commonjs" + }, "exclude": ["node_modules"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "ts-node": {