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