Skip to content

Not clear how to use Husky with existing hooks #171

Description

@Peeja

I have a pre-commit hook already. Husky, kindly, does not overwrite it when it installs. However, I'd like to run Husky's pre-commit hook as well. There doesn't appear to be an easy way to do that. The best I can imagine is to create a new project entirely, install Husky into it, and copy that pre-commit hook into my own.

Is there an easier way to do this that could be documented? And if not, is it possible to create an easier way to do it? Ideally, I'd like to copy and paste a one-line invocation from the Readme into an appropriate place in my own hook.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions