Husky setup for running prettier automatically before committing
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
hey @its-me-abhishek can you assign me?
sure, i've assigned this to you @enabasal
@its-me-abhishek you can check
@its-me-abhishek can you please add hacktoberfest tag in this repo
Hello @its-me-abhishek ,can you assign me,I want to work on this
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!
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.
Sure
@its-me-abhishek please review this pr. Thanks!
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.