JSHint vs Luacheck
JSHint
jshint.comLuacheck
luacheck.readthedocs.ioSide by side
| Figure | JSHint | Luacheck |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | Yes | — |
| Web | Yes | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Linters | 8.7 (#3) | 7.8 (#18) |
| Configuration | Projects can configure JSHint with a .jshintrc file, package.json jshintConfig or the CLI --config option. | Checks can be configured through command-line options, configuration files, or comments in checked files. |
| Editor integrations | The project lists integrations for Vim, Emacs, Sublime Text, Atom, TextMate, Visual Studio, VS Code, Brackets, Eclipse, NetBeans, JetBrains, Notepad++ and Gedit. | The project lists integrations for Vim, Sublime Text, Atom, Emacs, Brackets, Visual Studio Code, Nova, and Geany. |
| Installation | Official installation supports browser-like standalone files, Mozilla Rhino, npm global installation and npm development dependencies. | The project documents installation through LuaRocks and provides a single-file 64-bit Windows binary. |
| License | JSHint is licensed under the MIT Expat license. | The project is distributed under the MIT License. |
| Purpose | JSHint is a community-driven static analysis tool that detects errors and potential problems in JavaScript code. | Luacheck is a static analyzer and linter for Lua code. |
| Support | The project directs users to report bugs and suggestions through GitHub Issues. | The project directs users to its GitHub issue tracker for bugs, suggestions, and questions, and says pull requests are welcome. |
Plans
In their own words
JSHint
JSHint is a free, open-source static analysis tool for JavaScript. It checks code for syntax errors and potential problems such as implicit type conversion issues and leaking variables. The project aims to help JavaScript developers avoid typos and language gotchas while working on complex programs. JSHint is distributed as a Node module with a library and command-line program, and it can also be used through a JavaScript API. Configuration can come from command-line options, a .jshintrc file, package.json, or inline source directives. Standalone files are available for browser-like environments and Mozilla Rhino, with releases published to npm for Node.js. The install page lists integrations for editors and IDEs including Vim, Emacs, Sublime Text, Visual Studio, VS Code, Eclipse, and JetBrains IDEs, plus build integrations such as Grunt, Ant, Maven, pre-commit, and QUnit. JSHint is licensed under the MIT Expat license. Its documentation cautions that static analysis cannot determine whether a program is correct or fast, or whether it has memory leaks, and recommends using it alongside unit and functional tests and code reviews.
Luacheck
Luacheck has no write-up on Specifiction yet; its figures are above.