1.0.3 • Published 4 years ago
@srmcguirt/tsconfig v1.0.3
@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-devyarn
yarn add @srmcguirt/tsconfig -devUsage
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"
}
}