@wp-blocks/tsconfig

0.1.0 • Public • Published

tsconfig

Shared TypeScript config for @wp-block projects

Install

npm install --save-dev @wp-block/tsconfig

This config requires TypeScript 4.9 or later.

Usage

tsconfig.json

{
	"extends": "@wp-block/tsconfig",
	"compilerOptions": {
		"outDir": "build"
	},
  "include": ["src"]
}

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

{
	"extends": "@wp-block/tsconfig",
	"compilerOptions": {
		"outDir": "build",
		"target": "ES2021"
	}
}

Package Sidebar

Install

npm i @wp-blocks/tsconfig

Weekly Downloads

0

Version

0.1.0

License

GPL-2.0-or-later

Unpacked Size

1.99 kB

Total Files

3

Last publish

Collaborators

  • erikyo
  • bitmachina