docs: 添加tsconfig.json注释

This commit is contained in:
WANGFAN\wangf 2024-12-02 16:15:56 +08:00
parent 86566b6708
commit 9009e48518
2 changed files with 19 additions and 14 deletions

View File

@ -22,6 +22,7 @@ import "@/assets/fonts/fonts.scss";
// 引入自定义指令 // 引入自定义指令
import directives from "@/directives/index"; import directives from "@/directives/index";
// vchart黑暗模式
// https://arco.design/react/docs/vchart // https://arco.design/react/docs/vchart
initVChartArcoTheme(); initVChartArcoTheme();

View File

@ -1,29 +1,32 @@
{ {
//
"compilerOptions": { "compilerOptions": {
"target": "ES2020", "target": "ES2020", // ECMAScript
"useDefineForClassFields": true, "useDefineForClassFields": true,
"module": "ESNext", "module": "ESNext", //
"lib": ["ES2020", "DOM", "DOM.Iterable"], "lib": ["ES2020", "DOM", "DOM.Iterable"], //TSes5 domes5scripthost,使eses8"ES2019.Array",
"skipLibCheck": true, "skipLibCheck": true, // *.d.ts
/* Bundler mode */ /* Bundler mode */
"moduleResolution": "bundler", "moduleResolution": "bundler", //使node
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"resolveJsonModule": true, "resolveJsonModule": true, //".json"
"isolatedModules": true, "isolatedModules": true, //"ts.transpileModule"
"noEmit": true, "noEmit": true, // ,js
"jsx": "preserve", "jsx": "preserve", //preserve,preserveJSX使
/* Linting */ /* Linting */
"strict": true, "strict": true, //
"noUnusedLocals": true, "noUnusedLocals": true, // 使
"noUnusedParameters": true, "noUnusedParameters": true, // 使
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true, // switch穿(break)
"baseUrl": "./", "baseUrl": "./", //
"paths": { "paths": {
// baseUrl
"@/*": ["src/*"] "@/*": ["src/*"]
} }
}, },
// include使使"./src"src
"include": [ "include": [
"src/**/*", "src/**/*",
"src/**/*.ts", "src/**/*.ts",
@ -32,6 +35,7 @@
"vite.config.ts", "vite.config.ts",
"src/auto-import.d.ts" // vite.config.tsdts "src/auto-import.d.ts" // vite.config.tsdts
], // ], //
// excludeinclude使
"exclude": ["node_modules", "dist", "**/*.js"], // "exclude": ["node_modules", "dist", "**/*.js"], //
"references": [{ "path": "./tsconfig.node.json" }] "references": [{ "path": "./tsconfig.node.json" }]
} }