Created
April 17, 2024 16:51
-
-
Save delasign/10f4da0030acff15590dcb95844bace6 to your computer and use it in GitHub Desktop.
Sample TSConfig with Aliases for NextJSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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