From 5904c2b98781d04809aeae17feae2f7901276e1a Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 07:30:01 +0000 Subject: [PATCH] Configure TypeScript for improved code reliability and project structure Add tsconfig.json and tsconfig.node.json to configure TypeScript compiler options for client-side React code. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c5f0c281-8dd8-4846-b452-4a07bcd21062 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/91bbecb3-fd9b-4020-bffb-21abeae53e41.jpg --- client/tsconfig.json | 27 +++++++++++++++++++++++++++ client/tsconfig.node.json | 10 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 client/tsconfig.json create mode 100644 client/tsconfig.node.json diff --git a/client/tsconfig.json b/client/tsconfig.json new file mode 100644 index 0000000..4db166c --- /dev/null +++ b/client/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "baseUrl": ".", + "paths": { + "@/*": ["src/*"], + "@shared/*": ["../shared/*"], + "@assets/*": ["../attached_assets/*"] + } + }, + "include": ["src/**/*"], + "references": [{ "path": "./tsconfig.node.json" }] +} \ No newline at end of file diff --git a/client/tsconfig.node.json b/client/tsconfig.node.json new file mode 100644 index 0000000..099658c --- /dev/null +++ b/client/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +} \ No newline at end of file