【发布时间】:2021-10-23 10:58:25
【问题描述】:
这是我项目的结构
app/
|--src/
|--folder
|--tsconfig.json
这是我的 tsconfig 文件
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"]
}
所以我想让整个应用的严格属性为真,除了那个文件夹
【问题讨论】:
标签: reactjs directory tsconfig strict