forked from openinula/inula
36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"outDir": "./build",
|
|
"incremental": false,
|
|
"sourceMap": true,
|
|
"allowJs": true, // allowJs=true => tsc compile js as module, no type check
|
|
"checkJs": false, // Disable ts error checking in js
|
|
"strict": true, // js-ts mixed setting
|
|
"noImplicitReturns": true,
|
|
"noUnusedLocals": false, // 等大部分js代码改成ts之后再启用.
|
|
"noUnusedParameters": false,
|
|
"noImplicitAny": false,
|
|
"noImplicitThis": true,
|
|
"module": "CommonJS",
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "node",
|
|
"target": "es5",
|
|
"jsx": "preserve",
|
|
"resolveJsonModule": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"allowUnreachableCode": true,
|
|
"alwaysStrict": true,
|
|
"esModuleInterop": true,
|
|
"declaration": true,
|
|
"experimentalDecorators": true,
|
|
"downlevelIteration": true,
|
|
"types": ["jest"], // 赋值为空数组使@types/node不会起作用
|
|
"lib": ["dom", "esnext", "ES2015", "ES2016", "ES2017", "ES2018", "ES2019", "ES2020"],
|
|
"baseUrl": ".",
|
|
"rootDir": "./src",
|
|
"strictNullChecks": true
|
|
},
|
|
"exclude": ["node_modules", "**/*.spec.ts"]
|
|
}
|