update tsconfig

This commit is contained in:
Triston Armstrong 2023-12-31 09:35:37 -06:00
parent 78f98d4f1b
commit 7fc90d80b5

View File

@ -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"
],
}