-
Notifications
You must be signed in to change notification settings - Fork 59
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
Integrating Husky Pre-Commit Hook with ESLint and Prettier #36
base: main
Are you sure you want to change the base?
Conversation
@keshav-nischal can u review this! |
@keshav-nischal refactored as asked |
df69853
to
3c89b19
Compare
is this tested(the change is more than eslint, something related to dependency was also change)? for frontend |
@keshav-nischal Yep this is tested, I have added the screenshot in the description of this pr. There was aws-amplify which was not being used anywhere so I removed it, apart from that I have added the recommended dependencies for prettier husky and eslints. |
c5d8a70
to
88f07a5
Compare
dac9e3f
to
092121a
Compare
Description
This PR introduces a Husky pre-commit hook to automatically run ESLint and Prettier before committing code.
It ensures that only properly linted and formatted code is committed, preventing errors and enforcing consistency across the codebase.
Why is this needed?
Changes Introduced
steps to replicate and test the pr
Type
Commiting with no Error
Commiting with Errors