Refactor: Replace manual pre-commit hook with Husky and update VS Code config#24
Merged
Merged
Conversation
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
Deploying sergiomarquez-dev with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
scripts/pre-commit-hook.shin favor of Husky's more maintainable approach.husky/directory for managing pre-commit validations via lint-staged.vscode/settings.jsonwith Biome formatter, Tailwind CSS, and Astro configurations.vscode/extensions.jsonwith recommended extensions (Astro, Biome, Tailwind CSS).vscodefrom ignored files to allow sharing team settings.nvmrc(was pinned to Node 22).playwright-mcp/directory containing reference screenshots.husky/and.vscode/directories, removed obsoletedocs/andscripts/referencesImplementation Details
The new Husky + lint-staged setup provides:
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