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