-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
20 lines (20 loc) · 987 Bytes
/
tsconfig.json
File metadata and controls
20 lines (20 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"compilerOptions": {
"types": ["jest", "node"],
"target": "ES2020", // Cấp độ ECMAScript mà mã sẽ được biên dịch tới
"module": "CommonJS", // Định dạng module, sử dụng ES modules (import/export)
"moduleResolution": "node16",
"outDir": "./dist", // Thư mục đầu ra của file JavaScript biên dịch
"rootDir": "./src", // Thư mục gốc của mã nguồn TypeScript
"esModuleInterop": true, // Hỗ trợ import module theo chuẩn CommonJS
"forceConsistentCasingInFileNames": true, // Bắt buộc phân biệt chữ hoa chữ thường trong tên file
"strict": true, // Bật tất cả các kiểm tra chặt chẽ
"skipLibCheck": true, // Bỏ qua kiểm tra các file định nghĩa thư viện (.d.ts)
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"] // Các thư mục hoặc file bị loại trừ khỏi biên dịch
}