@aprx/tsconfig
v0.1.1
Published
A collection of Typescript configurations
Downloads
23
Readme
@aprx/tsconfig
Setup
- Install the package
npm install --dev @aprx/tsconfig typescript- Choose which preset you need from the list below and add it to your
tsconfig.json
{
"extends": "@aprx/tsconfig"
}Presets
There are two categories of configurations: those using tsc and those using any other bundler.
Reference
| Presets using tsc | Includes DOM | Use case |
|---------------------------------------|:------------------:|-----------------------------------------------------------------------|
| @aprx/tsconfig/tsc | :x: | Base configuration, customize it as you wish |
| @aprx/tsconfig/tsc/app | :white_check_mark: | Browser/DOM application. Includes DOM and JSX |
| @aprx/tsconfig/tsc/lib | :x: | Node.js library or backend service |
| @aprx/tsconfig/tsc/monorepo-lib | :x: | Node.js in a monorepo |
| Presets using another bundler | Includes DOM | Use case |
|---------------------------------------|:------------------:|-----------------------------------------------------------------------|
| @aprx/tsconfig | :x: | Base configuration, customize it as you wish |
| @aprx/tsconfig/app | :white_check_mark: | Browser/DOM application. Includes DOM and JSX |
| @aprx/tsconfig/lib | :x: | Node.js library or backend service |
| @aprx/tsconfig/monorepo-lib | :x: | Node.js in a monorepo |
| @aprx/tsconfig/nextjs | :white_check_mark: | Next.js application. Includes recommended properties |
Resources
Credits
Special thanks to Matt Pocock for the inspiration
License
MIT
