@panates/tsconfig
v2.1.10
Published
TypeScript config file, following our rules
Readme
@panates/tsconfig
Shared tsconfig presets for Panates TypeScript projects.
Install
npm i -D typescript @panates/tsconfigUse
Extend a preset by its file name:
{
"extends": "@panates/tsconfig/node.json"
}| File | What it sets |
| ------------ | ------------------------------------------------------------------------------------------------------ |
| base.json | strict checks, esnext target and modules, bundler resolution, verbatimModuleSyntax, no emit |
| node.json | base.json with nodenext modules and resolution and the Node.js types |
| build.json | the emit options for a build: declarations, no source maps; combine it with base.json or node.json |
A build config extends both, for example "extends": ["@panates/tsconfig/node.json", "@panates/tsconfig/build.json"].
