I am receiving the following errors when running TSLint in Azure Devops Build Pipeline. I want to make the build pipeline continue to next step, even if there are lint error. How can this be resolved?
Command Line:
- script: |
npm run lint > tsLintReport.txt
displayName: 'ng lint'
Error:
Lint warnings found in the listed files.
Lint errors found in the listed files.
Lint errors found in the listed files.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ipts@1.0.0 lint: `ng lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ipts@1.0.0 lint script.
Please add continueOnError
:
- script: |
npm run lint > tsLintReport.txt
displayName: 'ng lint'
continueOnError: true
it will not break the build but the build finishes with issues.