From ed274cc8d0b758efdaefb41eb83bb3e4cfa3c742 Mon Sep 17 00:00:00 2001 From: sjsjsj1246 Date: Sat, 21 Sep 2024 22:24:53 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EB=B9=8C=EB=93=9C=20=EC=8B=9C=20type?= =?UTF-8?q?=20error=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.app.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ tsconfig.json | 42 ++++-------------------------------------- tsconfig.node.json | 5 ++++- 3 files changed, 53 insertions(+), 39 deletions(-) create mode 100644 tsconfig.app.json diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 00000000..fc1003db --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,45 @@ +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + + "baseUrl": "src", + "paths": { + "@assets/*": ["assets/*"], + "@assets": ["assets"], + "@components/*": ["components/*"], + "@components": ["components"], + "@constants/*": ["constants/*"], + "@constants": ["constants"], + "@libs/*": ["libs/*"], + "@libs": ["libs"], + "@hooks/*": ["hooks/*"], + "@hooks": ["hooks"], + "@types/*": ["types/*"], + "@types": ["types"], + "@pages/*": ["pages/*"], + "@pages": ["pages"] + } + }, + "include": ["src"] +} diff --git a/tsconfig.json b/tsconfig.json index ec7f3d76..ea9d0cd8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,43 +1,9 @@ { - "compilerOptions": { - "target": "ES2020", - "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "types": ["cypress", "@testing-library/cypress"], - "module": "ESNext", - "skipLibCheck": true, - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "react-jsx", - /* Linting */ - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true, - "baseUrl": "src", - "paths": { - "@assets/*": ["assets/*"], - "@assets": ["assets"], - "@components/*": ["components/*"], - "@components": ["components"], - "@constants/*": ["constants/*"], - "@constants": ["constants"], - "@libs/*": ["libs/*"], - "@libs": ["libs"], - "@hooks/*": ["hooks/*"], - "@hooks": ["hooks"], - "@types/*": ["types/*"], - "@types": ["types"], - "@pages/*": ["pages/*"], - "@pages": ["pages"] - } - }, - "include": ["src", "**/*.ts"], + "files": [], "references": [ + { + "path": "./tsconfig.app.json" + }, { "path": "./tsconfig.node.json" } diff --git a/tsconfig.node.json b/tsconfig.node.json index 42872c59..3afdd6e3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,10 +1,13 @@ { "compilerOptions": { "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", "skipLibCheck": true, "module": "ESNext", "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "strict": true, + "noEmit": true }, "include": ["vite.config.ts"] }