chore: migrate Husky config from v8 to v9 format#4003
Merged
Conversation
- Replace `husky install` with `husky` in prepare script - Remove shebang and husky.sh import from pre-commit hook - Maintain existing
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR migrates Husky configuration from v8 to v9 format to modernize the pre-commit hook setup. The changes simplify the configuration while maintaining backward compatibility.
Key changes:
- Updated the prepare script to use the new
huskycommand instead ofhusky install - Simplified the pre-commit hook by removing the shebang and husky.sh import boilerplate
- Consolidated the pre-commit commands into a single line
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Misc/expressionFunc/hashFiles/package.json | Updated prepare script to use new Husky v9 command format |
| .husky/pre-commit | Simplified hook format by removing boilerplate and consolidating commands |
rentziass
approved these changes
Sep 1, 2025
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.
husky installwithhuskyin prepare scriptV9 is a non-breaking change is is backwards compatible so we don't need to upgrade this in any rush even though v9 is now in main.