tsconfig.json
files for Node.js
, Next.js
and React.js
projects.
npm install @maons/tsconfig --save-dev
These are base shared tsconfig.json
s from which all other tsconfig.json
's inherit from.
Create a tsconfig.json
file with the following content:
{
"extends": "@maons/tsconfig/base.json",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src/**/*"]
}
Create a tsconfig.json
file with the following content:
{
"extends": "@maons/tsconfig/nextjs.json",
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Create a tsconfig.json
file with the following content:
{
"extends": "@maons/tsconfig/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
}
Licensed under the MIT license.