{"id":25101,"library":"commit-sentry","title":"commit-sentry","description":"Zero-config Git hooks that work consistently across Windows, macOS, and Linux. Version 0.1.12 auto-wires pre-commit, commit-msg, and pre-push hooks on npm install without manual husky setup. Ships with prettier and lint-staged, offers optional ESLint scaffolding via `setup-eslint`, includes a `rm-console` tag to strip console.log calls, and runs commit-time builds with Windows lock detection. Released bi-weekly, it focuses on solving cross-platform hook failures and fresh-clone readiness where husky alone falls short.","status":"active","version":"0.1.12","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","husky","hooks","git","prettier","eslint","lint-staged","commit-msg","pre-commit"],"install":[{"cmd":"npm install commit-sentry","lang":"bash","label":"npm"},{"cmd":"yarn add commit-sentry","lang":"bash","label":"yarn"},{"cmd":"pnpm add commit-sentry","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Auto-installed for file formatting on commit","package":"prettier","optional":false},{"reason":"Auto-installed to run linters on staged files","package":"lint-staged","optional":false}],"imports":[{"note":"Must be a devDependency; hooks are installed via postinstall script.","wrong":"npm install commit-sentry (without --save-dev)","symbol":"default (package install)","correct":"npm install --save-dev commit-sentry"},{"note":"Command is `setup-eslint`, not a flag. Use `--force` to overwrite existing ESLint config.","wrong":"npx commit-sentry --eslint","symbol":"setup-eslint command","correct":"npx commit-sentry setup-eslint"},{"note":"Overwrites .husky/ contents with package defaults while preserving existing hooks.","wrong":"npx commit-sentry overwrite","symbol":"update command","correct":"npx commit-sentry update"}],"quickstart":{"code":"npm install --save-dev commit-sentry\n# Hooks are installed automatically.\n# To verify:\ngit add .\ngit commit -m \"test: verify hooks work\"\n# To add ESLint (optional):\nnpx commit-sentry setup-eslint\n# To bypass hooks for a single commit:\nHUSKY=0 git commit -m \"wip\"","lang":"javascript","description":"Installs commit-sentry, auto-wires Git hooks, and shows how to verify, add ESLint, and bypass hooks for one-off commits."},"warnings":[{"fix":"Run 'npx commit-sentry update' after install if you want the default hooks.","message":"Existing .husky/ files are preserved on install. Use 'npx commit-sentry update' to overwrite them.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Run 'npx commit-sentry update' or ensure hook files are saved with LF line endings.","message":"Windows CRLF can cause 'bash: $'\\r': command not found' errors. commit-sentry auto-heals this, but if you manually edit hooks, re-run the update command.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Stage the files with console.log before committing with 'rm-console' in the message.","message":"The 'rm-console' tag in commit messages only works on staged files; console.log in unstaged or untracked files is not affected.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npx commit-sentry update' to regenerate hooks with correct LF endings.","cause":"Git hook files have Windows CRLF line endings on a Unix-based system","error":"bash: $'\\r': command not found"},{"fix":"Ensure .husky/ directory exists and re-run 'npm install' or 'npx commit-sentry update'.","cause":"Manual husky install needed; commit-sentry sets it automatically but may fail in restricted environments","error":"Husky fails: 'git config core.hooksPath' not set"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}