forked from openinula/inula
76 lines
1.6 KiB
JSON
76 lines
1.6 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"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,
|
|
// "strictNullChecks": true,
|
|
"module": "es2015",
|
|
"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,
|
|
"declarationDir": "./build/@types",
|
|
// 赋值为空数组使@types/node不会起作用
|
|
"lib": [
|
|
"dom",
|
|
"esnext",
|
|
"ES2015",
|
|
"ES2016",
|
|
"ES2017",
|
|
"ES2018",
|
|
"ES2019",
|
|
"ES2020"
|
|
],
|
|
"strictNullChecks": true,
|
|
"paths": {
|
|
"react": [
|
|
"node_modules/react"
|
|
],
|
|
"react-dom": [
|
|
"node_modules/react-dom"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"./index.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"lib",
|
|
"**/*.spec.ts",
|
|
"dev",
|
|
"./example/**/*",
|
|
"./tsconfig.json"
|
|
],
|
|
"types": [
|
|
"node",
|
|
"jest",
|
|
"@testing-library/jest-dom"
|
|
],
|
|
"files": [
|
|
"./index.ts"
|
|
]
|
|
}
|