You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: Optimize lint-staged pre-commit hook with file filter (#3281)
## Summary
- Adds early exit check to pre-commit hook to skip lint-staged when no
relevant files are staged
- Uses fast git diff + grep to check for matching file extensions before
invoking lint-staged
- Significantly speeds up commits that only touch Elixir files or other
non-linted files in the monorepo
## Test plan
- [x] Created this PR (tested the hook during commit - it correctly
skipped lint-staged)
- [ ] Test with JS/TS file changes to ensure lint-staged still runs
- [ ] Test with only Elixir file changes to confirm it skips
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>
0 commit comments