Skip to content

Commit 54e9cdd

Browse files
authored
fix(create-vite): set skipLibCheck true (#7726)
1 parent af8ca60 commit 54e9cdd

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

packages/create-vite/template-lit-ts/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"allowSyntheticDefaultImports": true,
1616
"experimentalDecorators": true,
1717
"forceConsistentCasingInFileNames": true,
18-
"useDefineForClassFields": false
18+
"useDefineForClassFields": false,
19+
"skipLibCheck": true
1920
},
2021
"include": ["src/**/*.ts"],
2122
"references": [{ "path": "./tsconfig.node.json" }]

packages/create-vite/template-preact-ts/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"lib": ["DOM", "DOM.Iterable", "ESNext"],
66
"allowJs": false,
7-
"skipLibCheck": false,
7+
"skipLibCheck": true,
88
"esModuleInterop": false,
99
"allowSyntheticDefaultImports": true,
1010
"strict": true,

packages/create-vite/template-react-ts/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"lib": ["DOM", "DOM.Iterable", "ESNext"],
66
"allowJs": false,
7-
"skipLibCheck": false,
7+
"skipLibCheck": true,
88
"esModuleInterop": false,
99
"allowSyntheticDefaultImports": true,
1010
"strict": true,

packages/create-vite/template-vanilla-ts/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"noEmit": true,
1414
"noUnusedLocals": true,
1515
"noUnusedParameters": true,
16-
"noImplicitReturns": true
16+
"noImplicitReturns": true,
17+
"skipLibCheck": true
1718
},
1819
"include": ["src"]
1920
}

packages/create-vite/template-vue-ts/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"resolveJsonModule": true,
1111
"isolatedModules": true,
1212
"esModuleInterop": true,
13-
"lib": ["esnext", "dom"]
13+
"lib": ["esnext", "dom"],
14+
"skipLibCheck": true
1415
},
1516
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
1617
"references": [{ "path": "./tsconfig.node.json" }]

0 commit comments

Comments
 (0)