@zardoy/tsconfig

Shared TypeScript config for my projects

Usage no npm install needed!

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

README

My TSConfig presets

Doesn't follow semver!

Default and react preset have noEmit: true, so tsc is only for type-checking. Use Vite or esbuild for the actual compiling, it would save you a lot of time.

Usage

Usage:

{
    extends: "@zardoy/tsconfig/react"
}

Available presets: react, node, node-lib.

Heads up

This project includes index.d.ts files, which globally improves typings for entries and fromEntries.

Interesting facts

You can use generics in JSX Components: <Button<number> someProp={5} />