-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
37 lines (37 loc) · 1.24 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
{
"compilerOptions": {
"module": "esnext",
"allowImportingTsExtensions": true,
"moduleResolution": "bundler",
"paths": {"@/*": ["./src/*"]},
"noEmit": true,
"resolveJsonModule": true, // To match the webpack resolution
"allowJs": false,
"plugins": [{"name": "next"}],
"esModuleInterop": true, // Requirement for SWC/Babel
"isolatedModules": true, // Requirement for SWC/Babel
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
"jsx": "preserve", // Next.js implements its own optimized JSX transformer
"lib": ["esnext", "dom", "dom.iterable"],
"target": "es6",
"useDefineForClassFields": true,
"skipLibCheck": true,
"incremental": true,
// Type checking
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"types": ["vitest/importMeta"]
},
"include": ["dist/types/**/*.ts", "next-env.d.ts", "./src/**/*"],
"exclude": ["node_modules"]
}