Skip to content

nokken65/ts-config

Repository files navigation

@nokken65/ts-config

Here is my personal TypeScript config.

Install

npm install @nokken65/ts-config -D
yarn add @nokken65/ts-config -D
pnpm add @nokken65/ts-config -D

Usage

React config

// tsconfig.json
{
  "extends": "@nokken65/tsconfig/react",
  "include": [
    "src"
  ],
  "exclude": [
    "node_modules"
  ]
}

Vite config

// tsconfig.node.json
{
  "extends": "@nokken65/tsconfig/vite",
  "include": [
    "vite.config.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

Base config

// tsconfig.json
{
  "extends": "@nokken65/tsconfig",
  "compilerOptions": {
    "target": "ESNext",
    "lib": ["DOM", "DOM.Iterable", "ESNext"],
    "jsx": "react-jsx"
  }
  "include": [
    "src"
  ],
  "exclude": [
    "node_modules"
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published