Skip to content

Commit 0ea5807

Browse files
feat: enable allowImportingTsExtensions and strict ts flags (#3207)
1 parent d9a9c52 commit 0ea5807

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/build/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export async function writeTypes(nitro: Nitro) {
200200
moduleDetection: "force",
201201
isolatedModules: true,
202202
verbatimModuleSyntax: true,
203+
allowImportingTsExtensions: true,
203204
/* Strictness */
204205
strict: nitro.options.typescript.strict,
205206
noUncheckedIndexedAccess: true,

src/core/config/defaults.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const NitroDefaults: NitroConfig = {
8585

8686
// Advanced
8787
typescript: {
88-
strict: false,
88+
strict: true,
8989
generateTsConfig: true,
9090
generateRuntimeConfigTypes: true,
9191
tsconfigPath: "types/tsconfig.json",

0 commit comments

Comments
 (0)