ESLint vs ShellCheck
ESLint
eslint.orgShellCheck
shellcheck.netSide by side
| Figure | ESLint | ShellCheck |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| API | Yes | — |
| Self-hosted | Yes | — |
| Plans published | 1 | 1 |
| Spec score · Linters | 8.0 (#10) | 7.6 (#24) |
| Editor integrations | Official documentation lists integrations for Visual Studio Code, JetBrains IDEs, Vim, Neovim, Emacs, Sublime Text, and other editors. | The project lists integrations for Vim, Emacs, Sublime, Pulsar Edit, and VS Code, with GCC error compatibility for other editors. |
| Purpose | ESLint statically analyzes JavaScript code to find and fix problems. | ShellCheck is a static analysis tool that gives warnings and suggestions for Bash and sh scripts. |
Plans
In their own words
ShellCheck
ShellCheck is a free static analysis tool for Bash and sh scripts. It flags syntax problems, semantic issues, and subtle pitfalls that could make scripts fail in future circumstances, then offers warnings and suggestions. You can paste a script into ShellCheck.net or run it from a terminal with `shellcheck yourscript`.
The project lists integrations for Vim, Emacs, Sublime, Pulsar Edit, and VS Code, along with GCC-compatible warnings for other editors. It can also be added to builds or test suites, with support listed for services including Travis CI, Codacy, Code Climate, CodeFactor, CircleCI, GitHub Actions, and Trunk. Output options include JSON, CheckStyle-compatible XML, GCC-compatible warnings, and readable text with or without ANSI colors. Installation routes include package managers, precompiled binaries, Docker, and source compilation. ShellCheck is licensed under GPLv3; its wiki documents the tool, and bugs can be reported through GitHub issues. There are no official Apple Silicon binaries, and compiling from source requires 2 GB of RAM.