ng lint
is throwing an error on Gitlab CI stating:
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
.
The strange thing is that ng lint
runs perfectly fine on my local machine but encounters issues on gitlab CI.
I went ahead and added tslint.json
from the trade-up-common package to the .npmignore
file.
Both the main angular app and the common package have Codelyzer included in their dependencies.