Skip to content

Instantly share code, notes, and snippets.

@nikolovlazar
Created July 17, 2024 21:06
Show Gist options
  • Save nikolovlazar/31d39910035add6994aa242638717382 to your computer and use it in GitHub Desktop.
Save nikolovlazar/31d39910035add6994aa242638717382 to your computer and use it in GitHub Desktop.
Next.js tsconfig that works with inversify
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"types": ["reflect-metadata"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"],
"@/web/*": ["./app/*"],
"~/*": ["./*"]
}
},
"include": [
"next-env.d.ts",
"tailwind.d.ts",
"react-table.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment