Skip to content

Conversation

Copy link

Copilot AI commented Dec 15, 2025

Upgrades husky from v8.0.3 to v9.1.7 and removes it from Dependabot's ignore list.

Changes

  • package.json: Updated husky to ^9.1.7 and changed prepare script from husky install to husky
  • .husky/pre-commit: Removed v8-style boilerplate (shebang and husky.sh sourcing) - v9 hooks are simpler
  • .husky/.gitignore: Deleted - v9 auto-manages the _ directory
  • .github/dependabot.yml: Removed husky from ignore list
  • Adds eslint check to pre-commit

Migration Notes

Husky v9 simplifies hook management:

  • Hooks no longer require #!/usr/bin/env sh and . "$(dirname "$0")/_/husky.sh"
  • The prepare script is now just husky instead of husky install
  • Git hooks path automatically configured to .husky/_

How to test

  • Run branch locally
  • Try to commit files with eslint errors

Before (v8):

#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged

After (v9):

yarn lint-staged
Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade husky</issue_title>
<issue_description>### What

Upgrade to v9

[!NOTE]
Please remember to remove the relevant packages from Dependabot's ignore list once upgraded.

Definition of Done

  • Has been deployed to production
    </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 15, 2025 11:16
Co-authored-by: rcantin-w <110461050+rcantin-w@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade husky to version 9 Upgrade husky to v9.1.7 Dec 15, 2025
Copilot AI requested a review from rcantin-w December 15, 2025 11:20
@rcantin-w rcantin-w marked this pull request as ready for review December 15, 2025 11:27
@rcantin-w rcantin-w requested a review from a team as a code owner December 15, 2025 11:27
@rcantin-w rcantin-w removed their request for review December 15, 2025 11:27
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.

Upgrade husky

2 participants