mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(kit): improve generated tsconfig.json
defaults (#23121)
This commit is contained in:
parent
63d189a0c7
commit
f79f9b3a60
@ -117,6 +117,7 @@ export async function writeTypes (nuxt: Nuxt) {
|
||||
compilerOptions: {
|
||||
forceConsistentCasingInFileNames: true,
|
||||
jsx: 'preserve',
|
||||
jsxImportSource: 'vue',
|
||||
target: 'ESNext',
|
||||
module: 'ESNext',
|
||||
moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node',
|
||||
@ -124,6 +125,11 @@ export async function writeTypes (nuxt: Nuxt) {
|
||||
isolatedModules: true,
|
||||
useDefineForClassFields: true,
|
||||
strict: nuxt.options.typescript?.strict ?? true,
|
||||
noImplicitThis: true,
|
||||
esModuleInterop: true,
|
||||
// TODO: enable by default in v3.8
|
||||
// types: [],
|
||||
// verbatimModuleSyntax: true,
|
||||
allowJs: true,
|
||||
noEmit: true,
|
||||
resolveJsonModule: true,
|
||||
|
Loading…
Reference in New Issue
Block a user