@sargunv/typescript-config

0.3.0 • Public • Published

NPM

@sargunv/typescript-config

My personal Typescript configs.

Usage

Generic projects:

The basic preset configures all my preferences for type checking behavior, but is agnostic to environment. It'll need additional configuration for module, moduleResolution, lib, and target depending on the project. It also defaults to noEmit: true.

In tsconfig.json:

{
  "extends": "@sargunv/typescript-config"
}

Node projects:

This preset extends the generic preset for a modern Node environment.

In tsconfig.json:

{
  "extends": "@sargunv/typescript-config/presets/node",
  "include": ["src/**/*"],
  "compilerOptions": {
    "rootDir": "src",
    "outDir": "dist"
  }
}

If using CommonJS instead of ESM, extend node-cjs instead of node.

Readme

Keywords

none

Package Sidebar

Install

npm i @sargunv/typescript-config

Weekly Downloads

0

Version

0.3.0

License

Apache-2.0

Unpacked Size

14.4 kB

Total Files

7

Last publish

Collaborators

  • sargunv