-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
57 lines (42 loc) · 1.76 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
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
{
"compilerOptions": {
// Includes type definitions for the DOM, iterable DOM elements, and ECMAScript features.
"lib": ["dom", "dom.iterable", "esnext"],
// Allows JavaScript files to be imported into your TypeScript project.
"allowJs": true,
// Skips type checking of all declaration files (*.d.ts).
"skipLibCheck": true,
// Enables all strict type-checking options.
"strict": true,
// Instructs the compiler not to emit any compiled output (like JavaScript files).
"noEmit": true,
// Enables compatibility with Babel-style ES module interop.
"esModuleInterop": true,
// Sets the module system for the project to ESNext.
"module": "esnext",
// Specifies how module imports are resolved. "bundler" is typically used with bundlers like webpack.
"moduleResolution": "bundler",
// Allows importing JSON modules.
"resolveJsonModule": true,
// Ensures each file can be safely transpiled without relying on other files.
"isolatedModules": true,
// Preserves JSX to be transformed into JavaScript by another step (like Babel).
"jsx": "preserve",
// Enables incremental compilation by saving information about the project graph from the last compilation.
"incremental": true,
// Includes TypeScript plugins, in this case, a plugin for Next.js.
"plugins": [
{
"name": "next"
}
],
// Sets up a custom path alias. "@" can be used to import modules from the "src" directory.
"paths": {
"@/*": ["./src/*"]
}
},
// Specifies which files are to be included in the compilation.
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
// Excludes the node_modules folder from the compilation.
"exclude": ["node_modules"]
}