这是我项目的结构。
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"]
}因此,我想使整个应用程序的严格属性成为真,除了那个文件夹。
发布于 2021-08-23 03:00:14
否,不能将一个或多个ts配置属性应用于特定目录或任何ts文件。
Ts配置将应用于"include"属性中提到的所有文件。
https://stackoverflow.com/questions/68886725
复制相似问题