Miao-Yunzai/tsconfig.json

50 lines
1.2 KiB
JSON
Raw Normal View History

2024-06-08 20:52:49 +08:00
{
2024-06-08 21:07:07 +08:00
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"noImplicitAny": false,
"esModuleInterop": true,
2024-06-10 09:34:28 +08:00
"moduleResolution": "bundler",
2024-06-08 21:07:07 +08:00
"removeComments": true,
"preserveConstEnums": true,
"ignoreDeprecations": "5.0",
"jsx": "react",
2024-06-10 09:34:28 +08:00
"noEmit": true,
"allowImportingTsExtensions": true,
2024-06-08 21:07:07 +08:00
"allowJs": false,
"suppressImplicitAnyIndexErrors": true,
2024-06-10 00:14:21 +08:00
"typeRoots": ["node_modules/@types"],
2024-06-10 09:34:28 +08:00
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"resolveJsonModule": true,
"isolatedModules": true,
/* Linting */
// "strict": true, 严格模式
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
2024-06-10 19:35:37 +08:00
"forceConsistentCasingInFileNames": true,
//
2024-06-10 00:14:21 +08:00
"paths": {
2024-06-10 19:35:37 +08:00
// 内部核心模块导出
"#miao/*": ["./src/*"],
// 外部模块 待移除
2024-06-10 00:14:21 +08:00
"#miao": ["./plugins/miao-plugin/components/index.js"],
"#miao.models": ["./plugins/miao-plugin/models/index.js"]
}
2024-06-08 21:07:07 +08:00
},
"ts-node": {
"esm": true,
"transpileOnly": true,
"experimentalSpecifierResolution": "node"
},
2024-06-10 18:50:22 +08:00
"include": ["src", "image"]
2024-06-08 21:07:07 +08:00
}