Skip to content

Repository files navigation

@tomjs/tsconfig

npm node-current (scoped) NPM

English | 中文

Based on @vue/tsconfig's tsconfig, it supports node, vue, and react projects.

use

Install dependencies

pnpm add -D @tomjs/tsconfig

node project

Modify tsconfig.node.json configuration

{
  "extends": "@tomjs/tsconfig/node.json",
  "compilerOptions": {
    "composite": true
  },
  "include": []
}

vue project

Modify tsconfig.json configuration

  • vue.json: common configuration
  • vue-dom.json: loose configuration
{
  "extends": "@tomjs/tsconfig/vue.json",
  "compilerOptions": {},
  "include": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    }
  ]
}

react project

Modify tsconfig.json configuration

  • react.json: common configuration
  • react-dom.json: loose configuration
{
  "extends": "@tomjs/tsconfig/react.json",
  "compilerOptions": {},
  "include": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    }
  ]
}

Related

Original repository URL: https://github.com/tomjs/config/tree/main/packages/tsconfig

About

typescript config

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages