Looking for opinions on linting tool for JavaScript

Over time, I thought I saw hints by Members of the Community that they might have some depth of experience with JavaScript.

So ... would those members be willing to share their opinion as to

  • quality of the results
  • ease of use, and
  • ease of installation

offered by what I think are the 3 tools that seem to be emerging as the best FOSS alternatives:

  • ESLint
  • JSLint
  • JSHint

If you feel there is any other FOSS tool which truly has merit, then do please share that opinion with Community.

Thank you in advance for sharing your observations and experience with us.

P.S. Is there no tool which is standalone? Are they all Node.js dependent?

P.P.S. Any opinions on how well JSHint works with Gvim ?

jshint was one I used in the past (many years ago) when needing one for a CI tool to check vanilla JavaScript for silly errors. I vaguely recall they were not as useful back then since some didn't recognise ES6 syntax... I imagine things are better now.

It would be nice to see standalone tools, but yes, they all seem to be only available via the npm package manager.

I'd say whatever tool is up for the job. Depends if you want linting in the editor (while typing) or as a separate script/workflow to run, and how simple/complex the JS code is.

This page notes some pro's and con's of each — opinioned vs flexible choices I guess:

(and it seems JSHint I used is the oldest one)

3 Likes