A community-driven tool to detect errors and potential problems in JavaScript code and to enforce coding conventions.
About
JSHint is a community-driven tool to detect errors and potential problems in JavaScript code and to enforce coding conventions.
JSHint is very flexible so you can easily adjust it to your particular coding guidelines and the environment you expect your code to execute in.
Interface
JSHint is available:
- Via a web interface at http://jshint.com/
- Via npm with
npm install jshint
ornpm install -g jshint
for global install - As plugins for many text editors and IDEs.
History
JSHint is a fork of JSLint, the tool written and maintained by Douglas Crockford.
The project originally started as an effort to make a more configurable version of JSLint - the one that doesn't enforce one particular coding style on its users — but it then transformed into a separate static analysis tool with its own goals and ideals.
Goals
JSHint's goal is to help JavaScript developers write complex programs without worrying about typos and language gotchas.
Its developers believe that static code analysis programs — as well as other code quality tools — are important and beneficial to the JavaScript community and, thus, should not alienate their users.