feat: configure tsconfig.json for Next.js

This commit is contained in:
2025-06-04 09:25:41 +09:00
parent f779558554
commit 958ec1d6a1

View File

@ -1,11 +1,12 @@
{ {
"compilerOptions": { "compilerOptions": {
// Environment setup & latest features // Environment setup & latest features
"lib": ["ESNext"], "lib": ["ESNext", "DOM"],
"target": "ESNext", "target": "ESNext",
"module": "Preserve", "module": "ESNext",
"moduleDetection": "force", "moduleDetection": "auto",
"jsx": "react-jsx", "jsx": "preserve",
"jsxImportSource": "react",
"allowJs": true, "allowJs": true,
// Bundler mode // Bundler mode
@ -22,8 +23,24 @@
"noImplicitOverride": true, "noImplicitOverride": true,
// Some stricter flags (disabled by default) // Some stricter flags (disabled by default)
"noUnusedLocals": false, "noUnusedLocals": true,
"noUnusedParameters": false, "noUnusedParameters": true,
"noPropertyAccessFromIndexSignature": false "noPropertyAccessFromIndexSignature": true,
}
// Next.js specific settings
"types": ["next", "react", "node"]
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx"
],
"exclude": [
"node_modules",
".next",
"out",
"public",
"styles"
]
} }