talira

Compare

pretty-quicklint-stagedPrettiershfmt
What it isRuns Prettier on only the files you changed, with a pre-commit modeRun tasks like formatters and linters against files staged in GitAn opinionated code formatter that reprints your code in one consistent styleShell script formatter, with a Go shell parser and interpreter library (mvdan/sh)
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.300.710.760.69
Stars229114764524719229
Last commit2025-06-032026-11-222026-11-272026-11-25
LicenceMITMITMITBSD-3-Clause
PricingFree and open sourceFreeFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API——No—
Plugins——Yes—
MCP server——No—
CompanyPrettierlint-staged—Daniel Martí
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
Limitations
  • Partially staged files aren't re-staged in --staged mode; it exits non-zero so the commit stops.
      • The formatter cannot be turned off for ranges of lines
      • Does not support the $(( and (( ambiguity; space the operands
      • Subshells in the interpreter run as goroutines, so real PIDs and file descriptors cannot be used