Avoid nodejs project build to fail due to eslint error

Viewed 95

Context

We have a nodejs project which gets built and deployed through Jenkins pipeline. During the build step, it performs eslint for all the .js files under a directory and generate eslint report. In case of any eslint error, the Jenkins pipeline fails.

Problem statement

We have introduced a sub-directory which contains further .js files. We want to generate eslint report for this, but don't want to fail the pipeline in case of any eslint error.

Can anyone please suggest how can we solve this?

Thanks in advnace.

1 Answers
Related