1.0.3 • Published 2 years ago
@tarrasque/tsconfig v1.0.3
This package provides TypeScript configuration for Tarrasque App projects. It is intended to be used with @tarrasque/eslint-config and @tarrasque/prettier-config.
Installation
To install this package, run the following command:
yarn add --dev @tarrasque/tsconfig
You will also need to install the following peer dependencies:
yarn add --dev typescript
Usage
Add the following to your tsconfig.json
file, depending on your project type:
Next.js
{
"extends": "@tarrasque/tsconfig/nextjs",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", ".next"]
}
NestJS
{
"extends": "@tarrasque/tsconfig/nestjs",
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist"]
}
React
{
"extends": "@tarrasque/tsconfig/react",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "dist"]
}
ESM
{
"extends": "@tarrasque/tsconfig/esm",
"include": ["**/*.ts", "**/*.mts"],
"exclude": ["node_modules", "dist"]
}