From ef55d9bb24430610b60c1b77821307cd72c08c55 Mon Sep 17 00:00:00 2001 From: zwlucas Date: Sat, 25 Jul 2026 18:23:29 -0300 Subject: feat: upload of the project Signed-off-by: zwlucas --- api/tsconfig.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 api/tsconfig.json (limited to 'api/tsconfig.json') 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"] +} -- cgit v1.2.3