Archon/.husky
Rasmus Widing c591e27e49
chore: Add pre-commit hook to prevent formatting drift (#226) (#229)
* Investigate issue #226: Add pre-commit hook to prevent formatting drift

Analysis of the formatting drift issue that caused 12 files to fail
format:check during E2E validation. Root cause identified as missing
automated formatting enforcement in git workflow.

Proposed solution: husky + lint-staged to run Prettier on staged files
before each commit. Implementation plan documents all required changes
to package.json and new config files.

* chore: Add pre-commit hook to prevent formatting drift (#226)

Files were committed without running Prettier, causing format:check failures
during E2E validation. This adds automated formatting enforcement.

Changes:
- Add husky and lint-staged as devDependencies
- Add prepare script to initialize husky on install
- Create .lintstagedrc.json to format staged ts/js/json/md files
- Create .husky/pre-commit to run lint-staged before commits

Fixes #226

* chore: Add execute permission to pre-commit hook

* chore: Archive investigation for issue #226
2026-01-14 13:54:20 +02:00
..
pre-commit chore: Add pre-commit hook to prevent formatting drift (#226) (#229) 2026-01-14 13:54:20 +02:00