ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Husky setup for running prettier automatically before committing

Open its-me-abhishek opened this issue 1 year ago • 10 comments

Is your feature request related to a problem? Please describe. The contribution work flow sometimes gets harder if we somehow forget to run prettier and other formatting commands

Describe the solution you'd like Setup Husky for a hook that could prevent such issues.

Describe alternatives you've considered Githooks natively

Additional context N/A

its-me-abhishek avatar Oct 18 '25 18:10 its-me-abhishek

hey @its-me-abhishek can you assign me?

enabasal avatar Oct 19 '25 11:10 enabasal

sure, i've assigned this to you @enabasal

its-me-abhishek avatar Oct 19 '25 12:10 its-me-abhishek

@its-me-abhishek you can check

enabasal avatar Oct 19 '25 13:10 enabasal

@its-me-abhishek can you please add hacktoberfest tag in this repo

enabasal avatar Oct 19 '25 14:10 enabasal

Hello @its-me-abhishek ,can you assign me,I want to work on this

Sumit0919 avatar Oct 22 '25 16:10 Sumit0919

hi @Sumit091, as we already have a PR open for this issue, it might not be fit for assignment as of now. Please feel free to look around for any more issues or open up your own!

its-me-abhishek avatar Oct 22 '25 16:10 its-me-abhishek

Hello @its-me-abhishek I've been working on a solution for this issue.

I have successfully set up a pre-commit hook using Husky and lint-staged to automatically run Prettier on the frontend directory. This ensures that all staged files are formatted before a commit is made, which should solve the problem of inconsistent code styles.

I have a complete and tested implementation ready on my fork. Please let me know if you'd like me to open a pull request for review.

mishraa-G avatar Oct 23 '25 07:10 mishraa-G

Sure

its-me-abhishek avatar Oct 24 '25 11:10 its-me-abhishek

@its-me-abhishek please review this pr. Thanks!

mishraa-G avatar Oct 25 '25 09:10 mishraa-G

hey @its-me-abhishek I noticed that PR #129, which was addressing this issue, has gone stale. There hasn’t been recent activity on it, so I would like to work on this issue if it's still open.

If possible, could you please assign issue #114 to me? I will continue the work and submit a new PR.

Hell1213 avatar Nov 08 '25 04:11 Hell1213