From 24eceb3d9fa5cdabc18b57e71521a8802125a69a Mon Sep 17 00:00:00 2001 From: yulimchen Date: Thu, 29 Feb 2024 00:22:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=20`tsconfig`=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.config.json | 8 ------ tsconfig.json | 66 +++++++++++++++++++++++++++++--------------- 2 files changed, 43 insertions(+), 31 deletions(-) delete mode 100644 tsconfig.config.json diff --git a/tsconfig.config.json b/tsconfig.config.json deleted file mode 100644 index 424084a..0000000 --- a/tsconfig.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@vue/tsconfig/tsconfig.node.json", - "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"], - "compilerOptions": { - "composite": true, - "types": ["node"] - } -} diff --git a/tsconfig.json b/tsconfig.json index dc056d1..e0e02fe 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,30 +1,50 @@ { - "extends": "@vue/tsconfig/tsconfig.web.json", - "include": [ - "env.d.ts", - "src/**/*.ts", - "src/**/*.tsx", - "src/**/*.vue", - "types/*.d.ts", - "vite.config.ts", - "build/**/*.ts", - ], - "exclude": [ - "node_modules", - "dist", - "**/*.js" - ], "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": false, + "jsx": "preserve", + "importHelpers": true, + "experimentalDecorators": true, + "strictFunctionTypes": false, + "skipLibCheck": true, + "esModuleInterop": true, + "isolatedModules": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "sourceMap": true, "baseUrl": ".", + "allowJs": false, + "resolveJsonModule": true, + "lib": [ + "ESNext", + "DOM" + ], "paths": { - "@/*": ["./src/*"] + "@/*": [ + "src/*" + ], + "@build/*": [ + "build/*" + ] }, - "ignoreDeprecations": "5.0" + "types": [ + "node", + "vite/client" + ] }, - - "references": [ - { - "path": "./tsconfig.config.json" - } + "include": [ + "mock/*.ts", + "src/**/*.ts", + "src/**/*.tsx", + "src/**/*.vue", + "typings/*.d.ts", + "vite.config.ts" + ], + "exclude": [ + "dist", + "**/*.js", + "node_modules" ] -} +} \ No newline at end of file