Home Check Your JavaScript with JSHint, a Fork of Douglas Crockford’s JSLint

Check Your JavaScript with JSHint, a Fork of Douglas Crockford’s JSLint

Paul Irish and Anton Kovalyov have launched an online tool for checking your JavaScript code for errors and problems. JSHint aims to be more flexible and support more environments than JSLint, a similar tool created by Douglas Crockford.

Regarding the difference between JSHint and JSLint the JSHint website says “The most important difference is that JSHint is developed and supported by the JavaScript developer community and not by one very opinionated person.”

Irish elaborates on the differences in a comment on Hacker News:

JSLint has gotten increasingly more opinionated in the past few months.. For example, the standard for loop: `for (var i = 0, len = arr.length; i < len; i++) { ... ` will now error out in JSLint.

A lot of these sorts of changes don’t have flags to customize, so that’s something that JSHint aims to fix. Start with some great defaults, and allow them to be customized. Heck, we even save your checkbox preferences for you (via localStorage).

Crock’s responses to people asking for changes on the mailing list have also been a little disappointing:

“Your sadly pathetic bleatings are harshing my mellow.” http://tech.groups.yahoo.com/group/jslint_com/message/1688

On the github project, he’s refused CommonJS convention, NodeJS export support, and Rhino compat — all quite easy to do. So until Crock’s primary JSLint is a bit more friendly to customizability and different environments, JSHint will fulfill those needs.

Update:Kovalyov has written a blog post explaining his motivations for the fork.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.