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": { "compilerOptions": {
"target": "ESNext", "baseUrl": "./",
// enable latest features
"lib": [ "lib": [
"dom", "dom",
"dom.iterable", "dom.iterable",
"esnext" "ESNext"
], ],
"allowJs": true, "target": "ESNext",
"skipLibCheck": true, "module": "ESNext",
"strictNullChecks": true, "moduleDetection": "force",
"strict": false, "jsx": "preserve",
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": 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, "incremental": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve" "paths": {
"@/*": [ /*put paths here*/]
}
}, },
"include": [ "include": [
"next-env.d.ts", "next-env.d.ts",
@ -28,9 +45,11 @@
".eslintrc.cjs", ".eslintrc.cjs",
"*.config.js", "*.config.js",
"*.config.ts", "*.config.ts",
"postcss.config.cjs"
], ],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"notes/**/*" "notes/**/*",
] "next.config.js"
],
} }