Skip to content

husky usage #1

Description

@dannnyliang

Why remove Husky

husky dependency is removed since v1.0.3
When generating the project with the latest husky, the husky won't run and show the warning message.

The '.husky/pre-commit' hook was ignored because it's not set as executable

And that's because the hook scripts that are generated by the CRA script are not executable (ref).

How to apply manually

Follow the husky usage document manually after generating the project.

npx husky-init && yarn            # Yarn 1

and then update the pre-commit to run yarn lint-staged
then finally commit all the changes (chore(package.json): install husky and run lint-staged before commit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions