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

Remove Husky and pre-commit hooks from the project templates #505

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

ymekuria
Copy link
Collaborator

@ymekuria ymekuria commented Oct 20, 2023

Description
Closes #504

Problem

The Husky pre-commit hooks were originally added to the zkApp-cli project templates to enforce linting best practices before a developer commits their code to Github. While the intention was good, these hooks have created unnecessary complexity and friction for developers to iterate quickly. See the internal discussion.

This PR removes Husky and the pre-commit hooks from the project templates to remove friction and create a better DX when building zkApps. The pre-commit hooks were left as is when contributing to the zkApp-cli repository.

Tested

This was tested by manually generated projects and verifying the pre-commit hooks where removed.

The lint-staged configuration was removed as it was introducing unnecessary friction for developers.
The husky.sh file and pre-commit hook have been removed from the project. These files were no longer needed and were causing unnecessary complexity in the project setup. Removing them simplifies the project structure and reduces the potential for conflicts or issues related to these files.
Copy link
Contributor

@MartinMinkov MartinMinkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "prepare" script was removed from the package.json file as it was no longer needed. This script was used to install Husky, but since Husky is already installed as a dev dependency, the script was redundant.
…removing Husky and pre-commit hooks to improve developer experience
@ymekuria ymekuria merged commit 9ce6db9 into main Oct 20, 2023
@ymekuria ymekuria deleted the feature/remove-pre-commit-hooks branch October 20, 2023 21:44
@shimkiv
Copy link
Member

shimkiv commented Oct 21, 2023

Maybe we should have been giving an option for users whether to use Husky or not during the project generation (no by default)? Even though it might complicate things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Husky and pre commit hooks from the project templates
3 participants