diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..9b0f0a4 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,38 @@ +{ + "compilerOptions": { + "strict": true, + "noUncheckedIndexedAccess": true, + "exactOptionalPropertyTypes": false, + + // Environment setup & latest features + "lib": ["ESNext"], + "target": "ES2020", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + + // Bun-specific settings + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + + // Best practices + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "esModuleInterop": true, + "resolveJsonModule": true, + + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false, + }, + "include": ["src/**/*"], + "exclude": ["node_modules"], +}