Shared TypeScript config for my projects.
This module embraces:
- ESM
- Node v12+
- ES2019, ES2020
$ npm install --save-dev tsconfig-oy
tsconfig.json
{
"extends": "tsconfig-oy",
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "lib",
"outDir": "lib",
// ...
},
// ...
}
When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as target
:
{
"extends": "tsconfig-oy",
"compilerOptions": {
"target": "ES2021",
// ...
},
// ...
}
-
eslint-config-oy
(Use this instead oftslint
.)