{
"compilerOptions": {
/* 语言和环境 */
"target": "ES2020", /* 编译目标 */
"lib": ["ES2020", "DOM", "DOM.Iterable"], /* 包含的库 */
"jsx": "preserve", /* JSX 处理 */
/* 模块 */
"module": "ES2020", /* 模块系统 */
"moduleResolution": "node", /* 模块解析策略 */
"ignoreDeprecations": "6.0", /* 暂时忽略 TS6 的弃用提示 */
"allowImportingTsExtensions": true, /* 允许导入 .ts 扩展名模块 */
"resolveJsonModule": true, /* 允许导入 JSON */
"allowJs": true, /* 允许 JS 和 TS 混用 */
"checkJs": false, /* 初期不检查 JS 文件 */
/* 输出 */
"noEmit": true, /* 不输出文件,让 esbuild 处理编译 */
"sourceMap": true, /* 生成 source map */
"removeComments": false, /* 保留注释 */
/* 互操作性 */
"esModuleInterop": true, /* 启用 ES 模块互操作 */
"allowSyntheticDefaultImports": true, /* 允许合成默认导入 */
"forceConsistentCasingInFileNames": true, /* 强制文件名大小写一致 */
/* 类型检查 */
"strict": false, /* 初期关闭严格模式,逐步开启 */
"noImplicitAny": false, /* 允许隐式 any */
"strictNullChecks": false, /* 初期不检查 null/undefined */
"noUnusedLocals": false, /* 初期不检查未使用变量 */
"noUnusedParameters": false, /* 初期不检查未使用参数 */
/* 其他 */
"skipLibCheck": true, /* 跳过库文件检查,加快编译 */
"isolatedModules": true, /* 确保每个文件都可以独立编译 */
"types": ["jquery", "prismjs"] /* 引用全局类型定义 */
},
"include": [
"wwwroot/scripts/**/*"
],
"exclude": [
"node_modules",
"wwwroot/scripts/**/*.min.js",
"wwwroot/scripts/**/*.min.*.js"
]
}
AI 正在分析代码…
评论加载中...