-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
60 lines (45 loc) · 1.81 KB
/
tsconfig.json
File metadata and controls
60 lines (45 loc) · 1.81 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
// Compiler options for TypeScript
"compilerOptions": {
// Specify ECMAScript target version
"target": "ES6",
// Specify library files to be included in the compilation
"lib": [
"dom", // DOM library for web development
"dom.iterable", // DOM iterable support
"esnext" // Latest ECMAScript features
],
// Allow JavaScript files to be compiled
"allowJs": true,
// Skip type checking of declaration files
"skipLibCheck": true,
// Enables emit interoperability between CommonJS and ES Modules
"esModuleInterop": true,
// Allow default imports from modules with no default export
"allowSyntheticDefaultImports": true,
// Enable all strict type-checking options
"strict": true,
// Force consistent casing in file names
"forceConsistentCasingInFileNames": true,
// Report errors for fallthrough cases in switch statements
"noFallthroughCasesInSwitch": true,
// Specify module code generation
"module": "esnext",
// Specify module resolution strategy
"moduleResolution": "node",
// Include modules imported with .json extension
"resolveJsonModule": true,
// Isolate each file in its own module
"isolatedModules": false,
// Do not emit output files
"noEmit": true,
// Specify JSX code generation
"jsx": "react-jsx" // Use the new JSX transform from React 17+
},
// Specify the files to be included in the compilation
"include": [
"src", // Include all files in the src directory
"scripts", // Include all files in the scripts directory
"types/declarations.d.ts" // Include custom type definitions
]
}