A minimal shell script to run linters/formatters against files staged in Git. Version 0.6.9 is the latest stable release, with no scheduled cadence. Unlike the npm lint-staged package, this script has no dependencies, no configuration file, and no automatic backup or reset on failure. It simply evaluates a command with the list of staged files filtered by glob patterns. Designed for users who want a lightweight, transparent alternative to lint-staged. No runtime, no Node.js required; works in any Bourne-compatible shell.
npm install lint-staged.shNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and use lint-staged.sh with npx prettier to format staged files, then update git index.
Always quote glob patterns: "*.js" instead of *.js
Add 'git update-index --again' after the lint-staged.sh command in your hook.
Consider wrapping in a backup mechanism or use lint-staged npm package if rollback is needed.
Install via 'npx skills install https://github.com/lint-staged/lint-staged.sh' or copy the script to a directory in PATH.
Quote glob patterns: lint-staged.sh "command" "*.js"
No dependency data recorded yet.