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