ng lint在 Gitlab CI 上失败并显示错误消息An unhandled exception occurred: Failed to load /builds/trade-up/trade-up/common/projects/trade-up-common/tslint.json: Could not find custom rule directory: codelyzer。
ng lint在我的本地计算机上运行没有问题,但在 gitlab CI 上失败。
在 trade-up-common 包中,我已添加tslint.json到该.npmignore文件中。Codelyzer 包含在主 Angular 应用程序和通用包的依赖项中。