tsconfig
Shared TypeScript config for my projects
This config is intended to be used in nextjs projects.
Install
yarn add -D @pnxdxt/tsconfig
This config requires TypeScript 4.7 or later.
Usage
tsconfig.json
{
"extends": "@pnxdxt/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/pages/*": ["pages/*"],
"@/api/*": ["pages/api/*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.cjs",
"**/*.mjs",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
}