mirror of
https://github.com/coleam00/Archon
synced 2026-04-21 13:37:41 +00:00
* 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 |
||
|---|---|---|
| .. | ||
| pre-commit | ||