English | 中文
Based on @vue/tsconfig's tsconfig, it supports node, vue, and react projects.
Install dependencies
pnpm add -D @tomjs/tsconfigModify tsconfig.node.json configuration
{
"extends": "@tomjs/tsconfig/node.json",
"compilerOptions": {
"composite": true
},
"include": []
}Modify tsconfig.json configuration
vue.json: common configurationvue-dom.json: loose configuration
{
"extends": "@tomjs/tsconfig/vue.json",
"compilerOptions": {},
"include": [],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}Modify tsconfig.json configuration
react.json: common configurationreact-dom.json: loose configuration
{
"extends": "@tomjs/tsconfig/react.json",
"compilerOptions": {},
"include": [],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}Original repository URL: https://github.com/tomjs/config/tree/main/packages/tsconfig