Skip to content

Commit 219ae6a

Browse files
committed
fix: 🐛 update tsconfig.json
- microsoft/TypeScript#47663 (comment)
1 parent 9db14e8 commit 219ae6a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/taro-demo-vue3/tsconfig.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@
22
"compilerOptions": {
33
"target": "es2017",
44
"module": "commonjs",
5-
"removeComments": false,
6-
"preserveConstEnums": true,
75
"moduleResolution": "node",
86
"experimentalDecorators": true,
7+
"noEmit": true,
98
"noImplicitAny": false,
109
"allowSyntheticDefaultImports": true,
10+
"declaration": false, // fix IDE compile error(tsc --noEmit false --declaration true). ref: https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189
1111
"outDir": "lib",
12-
"noUnusedLocals": true,
13-
"noUnusedParameters": true,
1412
"strictNullChecks": true,
15-
"sourceMap": true,
1613
"rootDir": ".",
1714
"jsx": "preserve",
15+
"skipLibCheck": true,
1816
"allowJs": true,
1917
"resolveJsonModule": true,
20-
"typeRoots": ["node_modules/@types"],
2118
"paths": {
2219
// TS5090 leading './'
2320
"@/*": ["./src/*"]

0 commit comments

Comments
 (0)