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

Add pre-commit #342

Merged
merged 2 commits into from
May 16, 2024
Merged

Add pre-commit #342

merged 2 commits into from
May 16, 2024

Conversation

yfeng2824
Copy link
Collaborator

Description

  • automatically run yarn fmt && git add . when committing using husky

@yfeng2824 yfeng2824 requested a review from RetricSu May 16, 2024 04:25
@yfeng2824 yfeng2824 self-assigned this May 16, 2024
Copy link

vercel bot commented May 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nervos-ckb-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 7:18am

@@ -0,0 +1,3 @@
cd website
yarn fmt && git add .
Copy link
Collaborator

Choose a reason for hiding this comment

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

does the .husky need to be outsite the website folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

website/.husky/pre-commit Outdated Show resolved Hide resolved
@RetricSu RetricSu merged commit cbb8620 into v2 May 16, 2024
4 checks passed
@RetricSu RetricSu deleted the add-husky branch May 16, 2024 07:23
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.

2 participants