@nokken65/ts-config

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i @nokken65/ts-config

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.24 kB

Total Files

7

Last publish

Collaborators

  • nokken65