From 1216bef8f810d2977deb56b72234ec407685d807 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Sun, 15 Jun 2025 12:08:17 +0800 Subject: [PATCH] "update tsconfig patterns and compiler options across all projects" --- 03_source/cms_backend/tsconfig.json | 5 ++-- 03_source/frontend/tsconfig.json | 35 +++++++++++++-------------- 03_source/frontend/tsconfig.node.json | 9 ++++--- 03_source/mobile/tsconfig.json | 7 +++--- 03_source/mobile/tsconfig.node.json | 4 +-- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/03_source/cms_backend/tsconfig.json b/03_source/cms_backend/tsconfig.json index c5b64de..0e1cc99 100644 --- a/03_source/cms_backend/tsconfig.json +++ b/03_source/cms_backend/tsconfig.json @@ -34,9 +34,8 @@ "node_modules", ".next", // - "**/* copy *.tsx", - "**/* copy.tsx", - "**/*.bak", + "**/* copy *.*", + "**/* copy.*", "**/*.bak", "**/*.bug", "**/*.del", diff --git a/03_source/frontend/tsconfig.json b/03_source/frontend/tsconfig.json index 9a45b9a..4fd1448 100644 --- a/03_source/frontend/tsconfig.json +++ b/03_source/frontend/tsconfig.json @@ -1,39 +1,35 @@ { "compilerOptions": { + "allowJs": true, /* Bundler */ "baseUrl": ".", - "module": "ESNext", + "esModuleInterop": true, + "incremental": true, + "isolatedModules": true, "jsx": "react-jsx", - "allowJs": true, - "resolveJsonModule": true, - /* Build */ - "target": "ES2020", "lib": [ "ES2020", "DOM", "DOM.Iterable" ], + "module": "ESNext", "moduleResolution": "bundler", - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "incremental": true, + "noEmit": true, + "resolveJsonModule": true, "skipLibCheck": true, - "esModuleInterop": true, - "isolatedModules": true, /* Linting */ "strict": true, - "noEmit": true, - "strictNullChecks": true + "strictNullChecks": true, + /* Build */ + "target": "ES2020", + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo" }, - "include": [ - "src" - ], "exclude": [ "node_modules", ".next", // - "**/* copy *.tsx", - "**/* copy.tsx", - "**/*.bak", + "**/* copy *.*", + "**/* copy.*", "**/*.bak", "**/*.bug", "**/*.del", @@ -42,9 +38,12 @@ "**/*.tmp", "**/*del" ], + "include": [ + "src" + ], "references": [ { "path": "./tsconfig.node.json" } - ], + ] } diff --git a/03_source/frontend/tsconfig.node.json b/03_source/frontend/tsconfig.node.json index 1b28ed6..6df56e1 100644 --- a/03_source/frontend/tsconfig.node.json +++ b/03_source/frontend/tsconfig.node.json @@ -6,8 +6,8 @@ "allowSyntheticDefaultImports": true }, "exclude": [ - "**/* copy *.tsx", - "**/* copy.tsx", + "**/* copy *.*", + "**/* copy.*", "**/*.bak", "**/*.bak", "**/*.bug", @@ -16,5 +16,8 @@ "**/*.log", "**/*.tmp", "**/*del" - ], "include": ["vite.config.ts"] + ], + "include": [ + "vite.config.ts" + ] } diff --git a/03_source/mobile/tsconfig.json b/03_source/mobile/tsconfig.json index 002fabc..ea5513f 100644 --- a/03_source/mobile/tsconfig.json +++ b/03_source/mobile/tsconfig.json @@ -24,9 +24,8 @@ "node_modules", ".next", // - "**/* copy *.tsx", - "**/* copy.tsx", - "**/*.bak", + "**/* copy *.*", + "**/* copy.*", "**/*.bak", "**/*.bug", "**/*.del", @@ -43,4 +42,4 @@ "path": "./tsconfig.node.json" } ] -} \ No newline at end of file +} diff --git a/03_source/mobile/tsconfig.node.json b/03_source/mobile/tsconfig.node.json index 3c1d5aa..64c0786 100644 --- a/03_source/mobile/tsconfig.node.json +++ b/03_source/mobile/tsconfig.node.json @@ -1,9 +1,9 @@ { "compilerOptions": { + "allowSyntheticDefaultImports": true, "composite": true, "module": "ESNext", - "moduleResolution": "Node", - "allowSyntheticDefaultImports": true + "moduleResolution": "Node" }, "exclude": [ "**/* copy *.tsx",