WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Not clear how to use Husky with existing hooks #171

@Peeja

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.

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