1.0.2 • Published 6 months ago

@nokken65/ts-config v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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"
  ]
}
1.0.2

6 months ago

1.0.1

7 months ago

1.0.0

7 months ago