1.2.0 • Published 2 years ago

@wwwoda/tsconfig v1.2.0

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

tsconfig

Shared TypeScript config for WordPress plugins by Woda

Install

npm install --save-dev @wwwoda/tsconfig

Usage

tsconfig.json

{
 "extends": "@wwwoda/tsconfig/tsconfig.json",
 "compilerOptions": {
  "outDir": "dist"
 }
}

When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as target:

{
 "extends": "@wwwoda/tsconfig/tsconfig.json",
 "compilerOptions": {
  "outDir": "dist",
  "target": "ES2021"
 }
}