Commit be47344
committed
fix: limit markdown linter hook to staged files only
Limit markdown linter hook that is being run pre-commit, to staged files only
- Change final linting check from '**/*.md' to staged files only
- Prevents hook failure on unstaged markdown files in project
- Maintains git staging area respect and workflow consistency
- Improves developer experience by focusing on actual changes
The hook was incorrectly scanning all markdown files after auto-fixing
staged files, causing failures on unrelated unstaged files like agent
definitions or documentation drafts.1 parent 5007257 commit be47344
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments