Skip to content

Refactor: Replace manual pre-commit hook with Husky and update VS Code config#24

Merged
sergiomarquezdev merged 2 commits into
mainfrom
claude/cleanup-project-config-8cIgc
Feb 8, 2026
Merged

Refactor: Replace manual pre-commit hook with Husky and update VS Code config#24
sergiomarquezdev merged 2 commits into
mainfrom
claude/cleanup-project-config-8cIgc

Conversation

@sergiomarquezdev

Copy link
Copy Markdown
Owner

Summary

This PR modernizes the development workflow by replacing the manual pre-commit hook script with Husky and lint-staged, while also establishing shared VS Code configuration for the team.

Key Changes

  • Removed manual pre-commit hook: Deleted scripts/pre-commit-hook.sh in favor of Husky's more maintainable approach
  • Added Husky git hooks: Introduced .husky/ directory for managing pre-commit validations via lint-staged
  • Established shared VS Code settings:
    • Added .vscode/settings.json with Biome formatter, Tailwind CSS, and Astro configurations
    • Added .vscode/extensions.json with recommended extensions (Astro, Biome, Tailwind CSS)
  • Updated .gitignore: Removed .vscode from ignored files to allow sharing team settings
  • Removed Node version file: Deleted .nvmrc (was pinned to Node 22)
  • Cleaned up Playwright artifacts: Removed .playwright-mcp/ directory containing reference screenshots
  • Updated README: Revised project structure documentation to reflect new .husky/ and .vscode/ directories, removed obsolete docs/ and scripts/ references

Implementation Details

The new Husky + lint-staged setup provides:

  • Automatic code formatting with Biome on save
  • Import organization via Biome
  • Consistent editor configuration across team members
  • Better maintainability compared to shell script approach

All validation checks (type-check, lint, build) are now managed through Husky hooks rather than a custom shell script.

https://claude.ai/code/session_01PH8bN9njjSbY9S3Sb9Uo4w

Remove unused files (.playwright-mcp screenshots, .nvmrc, scripts/
pre-commit-hook.sh), add .vscode with Biome formatter and recommended
extensions, and update README project structure to match reality.

https://claude.ai/code/session_01PH8bN9njjSbY9S3Sb9Uo4w
Move critical rules (MUST/NEVER) to top of file for passive context,
compress architecture and stack into single section, add testing
conventions, and deduplicate gotchas that are now covered by rules.

https://claude.ai/code/session_01PH8bN9njjSbY9S3Sb9Uo4w
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Feb 8, 2026

Copy link
Copy Markdown

Deploying sergiomarquez-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: a9098a9
Status: ✅  Deploy successful!
Preview URL: https://5ece2c20.sergiomarquez-dev.pages.dev
Branch Preview URL: https://claude-cleanup-project-confi.sergiomarquez-dev.pages.dev

View logs

@sergiomarquezdev sergiomarquezdev merged commit c9ed5fa into main Feb 8, 2026
2 checks passed
@sergiomarquezdev sergiomarquezdev deleted the claude/cleanup-project-config-8cIgc branch February 8, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants