tsconfig.json
{
"compilerOptions": {
"target": "ES2020",
"module": "NodeNext",
"jsx": "react",
"esModuleInterop": true,
"declaration": true,
"moduleResolution": "nodenext",
// strict options ensuring more stable code
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"types": ["node"],
// - âšī¸ https://www.typescriptlang.org/tsconfig#isolatedModules
// - đ Deno requires "isolatedModules" to be set to `true`
// - đ the stricter version - I always prefer the stricter version
// - đ probably the future
"isolatedModules": true
},
"include": ["index.ts"]
}