tsconfig-oy

Shared TypeScript config for my projects

Usage no npm install needed!

<script type="module">
  import tsconfigOy from 'https://cdn.skypack.dev/tsconfig-oy';
</script>

README

tsconfig-oy

Shared TypeScript config for my projects.

This module embraces:

  • ESM
  • Node v12+
  • ES2019, ES2020

Installation

$ npm install --save-dev tsconfig-oy

Usage

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",
        // ...
    },
    // ...
}

Related projects