Skip to content

Instantly share code, notes, and snippets.

@delasign
Created April 17, 2024 16:51
Show Gist options
  • Save delasign/10f4da0030acff15590dcb95844bace6 to your computer and use it in GitHub Desktop.
Save delasign/10f4da0030acff15590dcb95844bace6 to your computer and use it in GitHub Desktop.
Sample TSConfig with Aliases for NextJSON
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"baseUrl": "./src",
"paths": {
"@/*": ["*"],
"components/*": ["components/*"],
"types/*": ["types/*"]
}
},
"include": ["next-env.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