@tsconfig/deno

A base TSConfig for working with Deno.

Usage no npm install needed!

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

README

A base TSConfig for working with Deno.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/deno
yarn add --dev @tsconfig/deno

Add to your tsconfig.json:

"extends": "@tsconfig/deno/tsconfig.json"

The tsconfig.json:

{
  // This is based on https://deno.land/manual/getting_started/typescript#custom-typescript-compiler-options
  // then the defaults are removed.

  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Deno",

  "compilerOptions": {
    "jsx": "react",
    "lib": [],
    "resolveJsonModule": true,
    "strict": true
  }
}