@grupor5/tsconfig
v0.0.1
Published
typescript config file for Grupo R5 projects
Downloads
3
Keywords
Readme
@grupor5/tsconfig
A comprehensive TypeScript configuration file for seamless development across Grupo R5 projects.
Installation
$ npm install -D @grupor5/tsconfigUsage
Base Configuration
To use the base configuration, simply extend it in your tsconfig.json:
{
"extends": "@grupor5/tsconfig/base.json"
}React with Vite
For a hassle-free setup in a Vite and React environment, extend the following configuration:
{
"extends": "@grupor5/tsconfig/react-vite.json"
}Additional Configurations
ESM (ECMAScript Modules)
If you are working with ECMAScript Modules, extend the configuration in your esm.json:
{
"extends": "@grupor5/tsconfig/esm.json"
}DOM (Document Object Model)
For projects involving the Document Object Model, extend the configuration in your dom.json:
{
"extends": "@grupor5/tsconfig/dom.json"
}CommonJS (Node.js)
When working with Node.js and CommonJS, extend the configuration in your cjs.json:
{
"extends": "@grupor5/tsconfig/cjs.json"
}Vite Testing
To set up testing in a Vite environment, extend the configuration in your vitest.json:
{
"extends": "@grupor5/tsconfig/vitest.json"
}