@sindresorhus/tsconfig

Shared TypeScript config for my projects

Usage no npm install needed!

<script type="module">
  import sindresorhusTsconfig from 'https://cdn.skypack.dev/@sindresorhus/tsconfig';
</script>

README

tsconfig

Shared TypeScript config for my projects

Install

$ npm install --save-dev @sindresorhus/tsconfig

Usage

tsconfig.json

{
    "extends": "@sindresorhus/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": "@sindresorhus/tsconfig/tsconfig.json",
    "compilerOptions": {
        "outDir": "dist",
        "target": "ES2021"
    }
}