default Next.js tsconfig

This commit is contained in:
Matthias Kretschmann 2022-10-18 16:46:08 +01:00
parent 9a644991ee
commit 224873fb6e
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,33 +1,20 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "esnext", "target": "es5",
"module": "ES2020", "lib": ["dom", "dom.iterable", "esnext"],
"lib": ["dom", "ES2020"], "allowJs": true,
"resolveJsonModule": true, "skipLibCheck": true,
"moduleResolution": "node",
"jsx": "preserve",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmit": true,
"sourceMap": true,
"noImplicitAny": true,
"paths": {
"@shared/*": ["./src/components/@shared/*"],
"@hooks/*": ["./src/@hooks/*"],
"@context/*": ["./src/@context/*"],
"@images/*": ["./src/@images/*"],
"@utils/*": ["./src/@utils/*"],
"@content/*": ["./@content/*"]
},
"baseUrl": ".",
"strict": false, "strict": false,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"isolatedModules": true, "noEmit": true,
"skipLibCheck": true, "incremental": true,
"allowJs": true,
"esModuleInterop": true, "esModuleInterop": true,
"incremental": true "module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
}, },
"exclude": ["node_modules", ".next", "*.js"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"include": ["./src/**/*", "./tests/**/*", "./next-env.d.ts", "./content/**/*"] "exclude": ["node_modules"]
} }