Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

husky usage #1

Open
dannnyliang opened this issue Oct 6, 2021 · 0 comments
Open

husky usage #1

dannnyliang opened this issue Oct 6, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on

Comments

@dannnyliang
Copy link
Owner

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)

@dannnyliang dannnyliang added documentation Improvements or additions to documentation wontfix This will not be worked on labels Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant