| What it is | Runs Prettier on only the files you changed, with a pre-commit mode | Run tasks like formatters and linters against files staged in Git | An opinionated code formatter that reprints your code in one consistent style | Shell script formatter, with a Go shell parser and interpreter library (mvdan/sh) |
| Features | - runs Prettier on changed files only
- --staged pre-commit mode that formats and re-stages staged files
- compare changes with a branch
- filter files with glob patterns
- Git and Mercurial
| - runs tasks on staged files only, filtered by glob
- any shell command: linters, formatters, tests
- backs up the original state before running
- stages changes made by tasks
- JS configuration files
| - opinionated formatting with few options
- many languages
- editor integrations
- --check for CI
- plugins for more languages
| - Formats POSIX Shell, Bash, Zsh and mksh scripts
- Converts between shell and a JSON syntax tree
- Go parser that builds a shell syntax tree
- Interpreter that runs scripts without a system shell, including on Windows
- Shell-style word splitting, quoting, expansion and globbing in Go
- Docker images with Alpine variants
- Editor integrations for VS Code, JetBrains IDEs, Vim, Emacs and Prettier
|