T. *_*SvZ 4 lint gitlab typescript angular
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 应用程序和通用包的依赖项中。
小智 5
你必须安装codelyzer
npm install codelyzer
Run Code Online (Sandbox Code Playgroud)
然后在规则目录中定义:
"rulesDirectory": [
"node_modules/codelyzer"
],
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3929 次 |
| 最近记录: |