You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
871 B
34 lines
871 B
{
|
|
"compileOnSave": true,
|
|
"compilerOptions": {
|
|
"target": "es2018",
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"inlineSourceMap": true,
|
|
"noImplicitThis": true,
|
|
"noUnusedLocals": false,
|
|
"stripInternal": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"pretty": true,
|
|
"declaration": false,
|
|
"noImplicitAny": false,
|
|
// 核心新增1:关闭严格属性初始化(解决字段未初始化波浪线)
|
|
"strictPropertyInitialization": false,
|
|
// 核心新增2:关闭严格模式(新手友好,避免多余TS警告)
|
|
"strict": false,
|
|
"typeRoots": [
|
|
"typings",
|
|
"./node_modules/@types"
|
|
],
|
|
"outDir": "dist",
|
|
"rootDir": "src"
|
|
},
|
|
"exclude": [
|
|
"dist",
|
|
"node_modules",
|
|
"test",
|
|
],
|
|
}
|
|
|