@pnxdxt/tsconfig
v1.0.0
Published
Shared TypeScript config for my projects
Maintainers
Readme
tsconfig
Shared TypeScript config for my projects
This config is intended to be used in nextjs projects.
Install
yarn add -D @pnxdxt/tsconfigThis 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"]
}