Skip to content

sargunv/typescript-config

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published