Skip to content

Commit 5e5ca7d

Browse files
authored
feat(create-vite): set "strict: true" in tsconfig.node.json (#15820)
1 parent 48cbd0b commit 5e5ca7d

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"skipLibCheck": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
89
},
910
"include": ["vite.config.ts"]
1011
}

packages/create-vite/template-qwik-ts/tsconfig.node.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"skipLibCheck": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
89
},
910
"include": ["vite.config.ts"]
1011
}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"skipLibCheck": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
89
},
910
"include": ["vite.config.ts"]
1011
}

packages/create-vite/template-solid-ts/tsconfig.node.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"skipLibCheck": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
89
},
910
"include": ["vite.config.ts"]
1011
}

packages/create-vite/template-svelte-ts/tsconfig.node.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"composite": true,
44
"skipLibCheck": true,
55
"module": "ESNext",
6-
"moduleResolution": "bundler"
6+
"moduleResolution": "bundler",
7+
"strict": true
78
},
89
"include": ["vite.config.ts"]
910
}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"skipLibCheck": true,
55
"module": "ESNext",
66
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
89
},
910
"include": ["vite.config.ts"]
1011
}

0 commit comments

Comments
 (0)