XeNote/tsconfig.json

53 lines
1.1 KiB
JSON

{
"compilerOptions": {
"baseUrl": "./",
// enable latest features
"lib": [
"dom",
"dom.iterable",
"ESNext"
],
"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,
"resolveJsonModule": true,
"isolatedModules": true,
},
"include": [
"next-env.d.ts",
"pages/**/*",
"lib/**/*",
"components/**/*",
".eslintrc.js",
".eslintrc.cjs",
"*.config.js",
"*.config.ts",
"postcss.config.cjs"
],
"exclude": [
"node_modules",
"notes/**/*",
"next.config.js"
],
}