@baliestri/tsconfig

Shared configuration for TypeScript.

Usage no npm install needed!

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

README

@baliestri/tsconfig

Shared configuration for TypeScript. Commonly used by myself, but made available for your use.

Usage

Shareable configs are designed to work with the extends feature of tsconfig.json files.

It's necessary install the package dependencies, run the following command:

# NPM
$ npm install --save-dev typescript tslib
# Yarn
$ yarn add --dev typescript tslib

Then, add this to your tsconfig.json file:

{
  "extends": "@baliestri/tsconfig",
  "compilerOptions": {
    // Your options here...
  }
}

Note: If you try to click the configuration forward link, an error will occur, as TypeScript looks directly for a JSON file.

Licence

This project is licensed under the MIT license. Please see the license file for more information. tl;dr you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source.