The way I have it set up is:

* Run ESLint as an npm script (like lint)
* Configure jenkins to run "npm lint" in one of your steps. This
configuration depends on your type of project (freestyle, pipeline).
  - Freestyle will probably require you to install
https://wiki.jenkins-ci.org/display/JENKINS/Batch+Task+Plugin if you
are in windows. Just put "npm lint" in the script field.
  - Pipeline just requires writing "bat 'npm lint'" in your jenkinsfile.



On Mon, Mar 20, 2017 at 11:37 AM, Raul Frias <[email protected]> wrote:
> Hi,
>
> I am working with Eslint tool and works very well, I installed it in my
> project locally and I run it by console, is great.
>
> My question is, how can I integrate Eslint  with Jenkins tool?
>
> I was thinking create a bat or .cmd file to run by console and  then run it
> with Jenkins some way.
>
> I was researching about this, but for the moment I do not find nothing.
>
> If there is someone that help me with this.
>
> Thank
>
> --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to