Miao-Yunzai/tsconfig.json

58 lines
1.6 KiB
JSON

{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"noImplicitAny": false,
"esModuleInterop": true,
"moduleResolution": "bundler",
"removeComments": true,
"preserveConstEnums": true,
"ignoreDeprecations": "5.0",
"jsx": "react",
"noEmit": true,
"allowImportingTsExtensions": true,
"allowJs": false,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": ["node_modules/@types"],
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"resolveJsonModule": true,
"isolatedModules": true,
/* Linting */
// "strict": true, 严格模式
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
//
"paths": {
// 内部核心模块导出
"yunzai/config": ["./src/config/index.js"],
"yunzai/db": ["./src/db/index.js"],
"yunzai/mys": ["./src/mys/index.js"],
"yunzai/utils": ["./src/utils/index.js"],
"yunzai/init": ["./src/init/index.js"],
"yunzai/core": ["./src/core/index.js"],
// 图片开发
"yunzai/image/types": ["./src/image/types.js"],
"yunzai/image": ["./src/image/index.js"],
// 外部模块 待移除
"#miao": ["./plugins/miao-plugin/components/index.js"],
"#miao.models": ["./plugins/miao-plugin/models/index.js"]
}
},
"ts-node": {
"esm": true,
"transpileOnly": true,
"experimentalSpecifierResolution": "node"
},
"include": ["src", "plugins", "lib", "renderers"]
}