1.0.3 • Published 3 years ago

@srmcguirt/tsconfig v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@srmcguirt/tsconfig

Typescript shared config for ESM projects

Installation

In your project tsconfig file, extend the base configuration to this repositories tsconfig.json after installing the module.

For the latest stable version, run:

npm

npm install @srmcguirt/tsconfig --save-dev

yarn

yarn add @srmcguirt/tsconfig -dev

Usage

Change and extend settings in the tsconfig compiler options as needed to target the specific ECMA version required. The current targeted version is ES2020 and is written based on guidance supporting that version. Breaking changes will only happen on major ECMA jumps with updates.

Example

With just the extended config:

{
  "extends": "@srmcguirt/tsconfig/tsconfig.json"
}

With added compiler option settings for ES2021:

{
  "extends": "@srmcguirt/tsconfig/tsconfig.json",
  "compilerOptions: {
    "target": "ES2021"
  }
}