Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Foundations Variables Shadowing

Raymond Wach
Raymond Wach
7,961 Points

Do you recommend the use of JsLint?

I was checking out JSLint with some Javascript code from high traffic website (I forget what the code was exactly) and it seemed that JSLint was complaining about most of the structure of the code. Is JSLint an industry standard tool with widespread use or is it more of a niche tool that is only used by some developers?

2 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Hi Raymond Wach

As @leo picado said, jshint is more popular (it's also less picky than jsLint). Many developers find that jsLint complains too much and demands that you write your JavaScript code in particular ways. Another up-and-coming linting tool is ESLint: http://eslint.org/. ESLint is made so that developers can create their own rules for linting. This is useful if you work at a company that has developed a specific coding standard for JavaScript (for example Airbnb's JavaScript Style Guide). ESLint would let you create a set of rules that match your company standards and spit out errors if a programmer doesn't follow the agreed upon standard.

Leo Picado
Leo Picado
9,182 Points

Hi Raymond

I've worked in a few JS projects, both small and large, and they all tend to use JSHint http://jshint.com/ instead of JSLint, more over it's useful if you set it up to run on a git hook or integrated in your continuous integration flow and also add it to your IDE's settings