[英]'tsConfig' is not found in schema - Migrating tslint to eslint (Angular v11)
npx ng lint <projectName>
> nx run <projectName>:lint
'tsConfig' is not found in schema
I used to do the Migration from tslint to eslint.我曾经做过从 tslint 到 eslint 的迁移。 I followed this article: https://code.visualstudio.com/api/advanced-topics/tslint-eslint-migration
我关注了这篇文章: https://code.visualstudio.com/api/advanced-topics/tslint-eslint-migration
I don't know why I get this error.我不知道为什么我会收到这个错误。
Can anyone please help?有人可以帮忙吗?
I had the same sssue, and fixed it by change some lines in angular.json.我有同样的问题,并通过更改 angular.json 中的一些行来修复它。 I fixed it at options:
我在选项中修复了它:
"architect": {
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"tsConfig": [
"libs/domain/tsconfig.lib.json",
"libs/domain/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/backoffice-cockpit/domain/**/*"]
}
}
}
i deleted the lines "tsConfig" & "exclude" and added:我删除了“tsConfig”和“exclude”行并添加了:
"lintFilePatterns": [
"libs/domain/src/**/*.ts",
"libs/domain/src/**/*.html"
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.