-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
40 lines (35 loc) · 1.33 KB
/
Copy pathtsconfig.json
File metadata and controls
40 lines (35 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
/* Visit https://aka.ms/tsconfig to read more about this file */
"compilerOptions": {
/* Segurança e padronização */
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
/* Compatibilidade ampla */
"target": "es2023",
"module": "ESNext", // deixa o bundler escolher a melhor estratégia
"moduleResolution": "Node",
/* APIs disponíveis no código TS */
"lib": ["ES2023", "DOM"], // inclui features JS + APIs de navegador
/* Tipos */
"declaration": true, // gera .d.ts
"declarationMap": true, // gera mapas dos tipos (útil em IDEs)
// "declarationDir": "./dist/types", // separa tipos do código JS
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
/* Recursos extras */
"resolveJsonModule": true, // permite importar JSON direto
"useDefineForClassFields": true, // padrão moderno de fields em classes
// "removeComments": true, // tira comentários no .js final
"noEmitOnError": true, // não gera saída se houver erro
"sourceMap": true, // desligado em produção
/* Organização do projeto */
"outDir": "./dist",
"rootDir": "./src",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*"],
"exclude": ["test/**/*", "**/*.test.ts", "**/*.spec.ts", "node_modules", "dist", ".*"]
}