【发布时间】:2020-09-17 03:41:20
【问题描述】:
我在运行命令npm run lint 时尝试排除参考库项目文件,但它不适合我。
在主应用程序中,我在 angular.json 中添加了这些代码
Angular.json
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/pts-ngx/core/tsconfig.lib.json",
"projects/pts-ngx/core/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"**/projects/ors-testtaker-bff/**"
]
}
}
我有以下文件结构并试图排除 API 和 MODEL 文件夹中的文件
按照下面的说明进行操作
How to exclude all files under a directory in lint using angular CLI?
【问题讨论】:
标签: javascript angular typescript lint angular10