-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
44 lines (44 loc) · 1.53 KB
/
tsconfig.json
File metadata and controls
44 lines (44 loc) · 1.53 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
41
42
43
44
{
"compilerOptions": {
// کتابخانههای TypeScript برای DOM و ES6+
"lib": ["dom", "dom.iterable", "esnext"],
// اجازه استفاده از فایلهای JavaScript
"allowJs": true,
// هدف کامپایل ES6
"target": "ES6",
// رد کردن بررسی کتابخانهها برای بهبود سرعت
"skipLibCheck": true,
// فعال کردن strict mode برای type safety بهتر
"strict": true,
// عدم تولید فایلهای خروجی (Next.js خودش مدیریت میکند)
"noEmit": true,
// فعال کردن ES module interop
"esModuleInterop": true,
// استفاده از ES modules
"module": "esnext",
// استفاده از bundler برای resolve کردن modules
"moduleResolution": "bundler",
// اجازه import کردن فایلهای JSON
"resolveJsonModule": true,
// جداسازی modules برای بهبود عملکرد
"isolatedModules": true,
// حفظ JSX برای Next.js
"jsx": "preserve",
// فعال کردن incremental compilation
"incremental": true,
// پلاگین Next.js
"plugins": [
{
"name": "next"
}
],
// تعریف path aliases برای import راحتتر
"paths": {
"@/*": ["./*"]
}
},
// فایلهای شامل در کامپایل
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
// فایلهای مستثنی از کامپایل
"exclude": ["node_modules"]
}