ng lint fails on Gitlab CI with the error message 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 is running without issues on my local machine but failing on gitlab CI.
In the trade-up-common package, I have added tslint.json to the .npmignore file.
Codelyzer is included in the dependencies of both the main angular app and the common package.
You have to install codelyzer
npm install codelyzer
then define in the rules directory :
"rulesDirectory": [
"node_modules/codelyzer"
],
UPDATE:
If your tslint.json is different, try this:
"rules": {
"directive-selector": [
"codelyzer"
],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With