Miao-Yunzai/tsconfig.json

50 lines
1.2 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": {
// 内部核心模块导出
"#miao/*": ["./src/*"],
// 外部模块 待移除
"#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", "image"]
}