-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
32 lines (32 loc) · 1.39 KB
/
tsconfig.json
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
{
"compilerOptions": {
// --- Type checking
"allowJs": true, // Allow JS file to be compiled
"checkJs": true, // Check all JS files by default
"strict": true,
"forceConsistentCasingInFileNames": true, // Check import path casing matches file system (recommended by TS)
"noUncheckedIndexedAccess": true, // Every property access with an index could be undefined
"skipLibCheck": true, // Skip type checking .d.ts declaration files (recommended by TS)
// --- Language support
"target": "es5",
"module": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"jsx": "preserve",
// --- Code generation
"noEmit": true, // Don't emit files (Compilation handled by Babel)
// --- Module resolution
"esModuleInterop": true, // Interop commonJS and ESM, fixes some issues importing commonJS (recommended by TS)
"isolatedModules": true, // Disallow features that require cross-file information for compilation (Babel safety check)
"moduleResolution": "node", // Use Node.js algorithm to resolve modules
"resolveJsonModule": true,
// --- Alias resolution
"baseUrl": ".",
"paths": {
"componentry/api-docs": ["node_modules/componentry/dist/api-docs.json"],
"@/*": ["src/*"] // Resolve `@/` import base to scr/
},
"incremental": true
},
"include": ["next-env.d.ts", "@types/**/*", "src/**/*"],
"exclude": ["node_modules"]
}