-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
33 lines (33 loc) · 1.7 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
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true, // Enforce consistent casing in user's filename references
"lib": ["dom", "dom.iterable", "esnext"], // Specify library files to be included in the compilation
"allowJs": true, // Allow JavaScript files to be compiled
"skipLibCheck": true, // Skip type checking of declaration files
"strict": true, // Enable all strict type-checking options
"noEmit": true, // Do not emit outputs (e.g., no output files will be generated on compilation)
"esModuleInterop": true, // Enables emit interoperability between CommonJS and ES Modules
"module": "esnext", // Specify module code generation method
"moduleResolution": "bundler", // Specify module resolution strategy
"resolveJsonModule": true, // Allow importing .json files
"isolatedModules": true, // Ensure each file can be safely transpiled without relying on other imports
"jsx": "preserve", // Preserve JSX code for further transformation (e.g., by Babel or another transpiler)
"incremental": true, // Enable incremental compilation by creating a .tsbuildinfo file
"plugins": [
{
"name": "next" // Use the Next.js plugin for TypeScript
}
],
"paths": {
"@/*": ["./src/*"] // Set a custom path for base imports
}
},
"include": [
"next-env.d.ts", // Include Next.js ambient type definitions
"**/*.ts", // Include all TypeScript files in the project
"**/*.tsx", // Include all TypeScript React files in the project
".next/types/**/*.ts", // Include TypeScript files in .next/types for type checking
"src/lib/supabaseClient.js" // Include specific JavaScript file for compilation
],
"exclude": ["node_modules"] // Exclude the node_modules directory from compilation
}