diff options
| author | zwlucas <lucas.fariamo08@gmail.com> | 2026-07-25 21:23:29 +0000 |
|---|---|---|
| committer | zwlucas <lucas.fariamo08@gmail.com> | 2026-07-25 21:23:29 +0000 |
| commit | ef55d9bb24430610b60c1b77821307cd72c08c55 (patch) | |
| tree | e6935a810b34370b0a4c821e55f6397aac50c832 /api/tsconfig.json | |
| download | helpdesk-ef55d9bb24430610b60c1b77821307cd72c08c55.tar.gz helpdesk-ef55d9bb24430610b60c1b77821307cd72c08c55.zip | |
Signed-off-by: zwlucas <lucas.fariamo08@gmail.com>
Diffstat (limited to 'api/tsconfig.json')
| -rw-r--r-- | api/tsconfig.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/api/tsconfig.json b/api/tsconfig.json new file mode 100644 index 0000000..e11b6c1 --- /dev/null +++ b/api/tsconfig.json @@ -0,0 +1,37 @@ +{ + "compilerOptions": { + // ── Compilação ──────────────────────────────────────────────────────────── + "target": "ES2022", // Node 20 suporta ES2022 nativamente + "module": "ESNext", // Saída em ESModules (alinhado com "type":"module") + "moduleResolution": "bundler", // Compatível com tsx (dev) e esbuild/tsc (prod) + "lib": ["ES2022"], + + // ── Saída ───────────────────────────────────────────────────────────────── + "outDir": "./dist", + "rootDir": "./src", + "declaration": true, // Gera .d.ts para uso interno entre módulos + "sourceMap": true, // Facilita debug em desenvolvimento + + // ── Strict Mode (obrigatório para código limpo) ──────────────────────────── + "strict": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + + // ── Interoperabilidade ──────────────────────────────────────────────────── + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, + "verbatimModuleSyntax": true, // Força import type onde necessário + + // ── Path Aliases ────────────────────────────────────────────────────────── + // Permite imports como: import { db } from '@/db/connection' + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + } + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist"] +} |