update tsconfig
This commit is contained in:
parent
78f98d4f1b
commit
7fc90d80b5
@ -1,23 +1,40 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"baseUrl": "./",
|
||||
// enable latest features
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
"ESNext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strictNullChecks": true,
|
||||
"strict": false,
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleDetection": "force",
|
||||
"jsx": "preserve",
|
||||
// Bundler mode
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"noEmit": true,
|
||||
// best practices
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
// some stricter flags
|
||||
"useUnknownInCatchVariables": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
// other settings
|
||||
"allowJs": true,
|
||||
"strictNullChecks": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve"
|
||||
"paths": {
|
||||
"@/*": [ /*put paths here*/]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
@ -28,9 +45,11 @@
|
||||
".eslintrc.cjs",
|
||||
"*.config.js",
|
||||
"*.config.ts",
|
||||
"postcss.config.cjs"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"notes/**/*"
|
||||
]
|
||||
"notes/**/*",
|
||||
"next.config.js"
|
||||
],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user