JSHint points out potential problems such as syntax errors, bugs and leaking variables. Companies who have used it include Mozilla, Facebook, Twitter, Red Hat, jQuery and Zendesk.
JSHint originated from the JSLint project in 2010, and has been maintained by several developers. The latest update, version 2.9.2, was released last month with bug fixes.
The creators of JSHint note that the program isn’t designed to detect whether a program is correct, fast or contains memory leaks. Developers should pair JSHint with unit and functional tests and perform their own code reviews.
“Any codebase eventually becomes huge at some point, and simple mistakes—that would not show themselves when written—can become show stoppers and waste hours of debugging. And this is when static code-analysis tools come into play and help developers to spot such problems,” according JSHint’s GitHub page.
Top 5 trending projects on GitHub this week
#1. CRYENGINE: The source code for CRYENGINE, a real-time game development platform
#2. AlgorithmVisualizer: A project that allows developers to traverse or search tree or graph data structures
#3. Free Code Camp: That’s right! This open-source codebase and curriculum is still going strong!
#4. HTTP Prompt: A interactive command-line HTTP client
#5. Black Screen: An Electron-based terminal emulator and interactive shell