XeNote/tsconfig.json

56 lines
1.2 KiB
JSON
Raw Normal View History

2023-12-29 23:29:50 +00:00
{
"compilerOptions": {
2023-12-31 15:35:37 +00:00
"baseUrl": "./",
// enable latest features
2023-12-29 23:29:50 +00:00
"lib": [
"dom",
"dom.iterable",
2023-12-31 15:35:37 +00:00
"ESNext"
2023-12-29 23:29:50 +00:00
],
2023-12-31 15:35:37 +00:00
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "preserve",
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// best practices
"strict": true,
2023-12-29 23:29:50 +00:00
"skipLibCheck": true,
2023-12-31 15:35:37 +00:00
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// some stricter flags
"useUnknownInCatchVariables": true,
"noPropertyAccessFromIndexSignature": true,
// other settings
"allowJs": true,
2023-12-30 16:42:21 +00:00
"strictNullChecks": true,
2023-12-29 23:29:50 +00:00
"incremental": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
2023-12-31 15:35:37 +00:00
"paths": {
"@/*": [ /*put paths here*/]
}
2023-12-29 23:29:50 +00:00
},
"include": [
"next-env.d.ts",
2023-12-30 16:42:21 +00:00
"pages/**/*",
"lib/**/*",
"components/**/*",
".eslintrc.js",
".eslintrc.cjs",
"*.config.js",
"*.config.ts",
2023-12-31 15:35:37 +00:00
"postcss.config.cjs"
2023-12-29 23:29:50 +00:00
],
"exclude": [
2023-12-30 16:42:21 +00:00
"node_modules",
2023-12-31 15:35:37 +00:00
"notes/**/*",
"next.config.js"
],
2023-12-29 23:29:50 +00:00
}