Skip to content
SPECIFICTION
Get listed

Hadolint vs JSHint

Hadolint

github.com

JSHint

jshint.com

Side by side

FigureHadolintJSHint
Price fromFreeFree
Free planYesYes
Free trial——
Open source—Yes
WebYesYes
WindowsYesYes
macOSYesYes
LinuxYesYes
API—Yes
Self-hosted—Yes
Plans published11
Spec score · Linters7.9 (#13)8.7 (#3)
ConfigurationUsers can configure ignored rules, severity overrides, failure thresholds, output format, label schemas, and trusted registries.Projects can configure JSHint with a .jshintrc file, package.json jshintConfig or the CLI --config option.
Editor integrationsDocumented editor integrations include VS Code, Atom, Emacs, Geany, Sublime Text, Vim, and NeoVim.The project lists integrations for Vim, Emacs, Sublime Text, Atom, TextMate, Visual Studio, VS Code, Brackets, Eclipse, NetBeans, JetBrains, Notepad++ and Gedit.
Latest releaseThe release page opened for this research lists v2.15.1 as the latest release.GitHub lists JSHint 2.13.6 as the latest release, dated 2022-11-11, with fixes for const initialization and an error message.
LicenseThe repository identifies its license as GPL-3.0.JSHint is licensed under the MIT Expat license.
PurposeHadolint is a Dockerfile linter that checks Dockerfiles for errors and best practices.JSHint is a community-driven static analysis tool that detects errors and potential problems in JavaScript code.

Plans

Hadolint

  • HadolintFree

Hadolint pricing →

JSHint

  • JSHintFree

JSHint pricing →

In their own words

Hadolint

Hadolint is a free Dockerfile linter that parses files into an abstract syntax tree and checks that structure for errors and stated best practices. It uses ShellCheck to inspect Bash code inside Dockerfile RUN instructions. Rules carry either the DL prefix for Hadolint checks or SC for ShellCheck checks. Users can ignore rules, override severity, set failure thresholds, choose report formats, and configure label schemas and trusted registries. Output formats include tty, JSON, Checkstyle, Code Climate, GitLab Code Climate, GNU, Codacy, SonarQube, SARIF, and JUnit. Hadolint runs in Docker or Podman containers and is available as a pre-commit hook. Prebuilt binaries support Linux, macOS, and Windows; installation options include Homebrew, Scoop, Nix, containers, and source builds. Documented integrations cover major CI systems and editors. An online version is hosted at hadolint.github.io/hadolint. The latest listed release is v2.15.1, under GPL-3.0.

Visit github.com

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.

Visit jshint.com