@wp-blocks/tsconfig
v0.1.0
Published
A shared TypeScript configuration for wp-block projects
Downloads
11
Readme
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"
}
}