Skip to main content

@kaydafox/typescript-config@1.0.0

latest

Just the config files i use for typescript

Works with
This package works with Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Browsers
JSR Score
64%
Published
2 months ago

@kaydafox/typescript-config

My main typescript configurations

Table

Installation

This can be installed by using the below command. Just replace yarn add with your package manager if you use a different one

yarn add -D @kaydafox/typescript-config

Usage

This contains a few different tsconfigs depending on what I need

  • @kaydafox/typescript-config/base / @kaydafox/typescript-config
  • @kaydafox/typescript-config/strict
  • @kaydafox/typescript-config/no-decorators

I always recommend the base config to be added and the rest used as needed. They can be used by adding them to your tsconfig inside of extends: []


The base config is the default and is set up in a way that suits the majority of the projects I have

The strict config just adds a few options on to the base config for more strict type checking

Lastly, no-decorators is recommended to add to a project if decorators aren't going to be used. It's on by default in the base config because personally I love using decorators

Add Package

deno add @kaydafox/typescript-config

Import symbol

import * as mod from "@kaydafox/typescript-config";

Add Package

npx jsr add @kaydafox/typescript-config

Import symbol

import * as mod from "@kaydafox/typescript-config";

Add Package

yarn dlx jsr add @kaydafox/typescript-config

Import symbol

import * as mod from "@kaydafox/typescript-config";

Add Package

pnpm dlx jsr add @kaydafox/typescript-config

Import symbol

import * as mod from "@kaydafox/typescript-config";

Add Package

bunx jsr add @kaydafox/typescript-config

Import symbol

import * as mod from "@kaydafox/typescript-config";