@m1rn/tsconfig
v1.0.0
Published
Typescript shareable configurations
Downloads
3
Maintainers
Readme
@m1rn/tsconfig
A collection of TypeScript preset configurations that follow best practices, designed to help you quickly set up your TypeScript projects.
Features
- Best Practices: Ensures accurate and reliable type checking.
- Strict Configurations: Keeps your code quality at a high standard.
- Flexible Setup: Adapts to various project needs.
- Regular Updates: Stays up-to-date with the latest features and versions.
Prerequisites
TypeScript
- Version >= 5.0.0
Installation
npm install @m1rn/tsconfig --save-dev
Presets
Suitable for all TypeScript projects; serves as foundation for other presets
Suitable for projects that require strict type checking.
Suitable for browser environment projects.
Suitable for Node.js projects.
Suitable for React projects.
Suitable for Vue projects.
Usage
Just extend
the preset configurations you need in your tsconfig.json
file:
Single Configuration
{
"extends": "@m1rn/tsconfig/base"
}
Combined Configuration
{
"extends": ["@m1rn/tsconfig/node", "@m1rn/tsconfig/strict"]
}