@jameslnewell/typescript-config

Creates a tsconfig.base.json file according to my preferences.

Usage no npm install needed!

<script type="module">
  import jameslnewellTypescriptConfig from 'https://cdn.skypack.dev/@jameslnewell/typescript-config';
</script>

README

@jameslnewell/typescript-config

Creates a tsconfig.base.json file according to my preferences.

Installation

Yarn:

yarn dlx -p @jameslnewell/typescript-config create-editor-config

NPM:

npx -p @jameslnewell/typescript-config create-editor-config

Usage

Create a tsconfig.json that extends tsconfig.base.json.

{
  "extends": "tsconfig.base.json",
  "compilerOptions": {
    "declaration": true,
    "outDir": "dist",
    "target": "CommonJS"
  },
  "include": ["src"]
}