Skip to content

husky deprecation warning when trying to add a commit #3592

@eXhumer

Description

@eXhumer

Bug Description

Every time I run git commit, I receive the following warning.

husky - DEPRECATED

Please remove the following two lines from .husky/pre-commit:

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

They WILL FAIL in v10.0.0

Related https://github.com/typicode/husky/releases/tag/v9.0.1

Reproducible By

Make a change and try git commit and check console output.

Expected Behavior

No deprecation warning when trying to run git commit

Logs & Screenshots

N/A

Environment

macOS 15.1 Beta, node v22.8.0

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions