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

feat: add pre-commit hooks with Husky for formatting and linting checks #95

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

Rajgupta36
Copy link
Contributor

@Rajgupta36 Rajgupta36 commented Dec 3, 2024

Summary

  • Implemented Husky for Git hooks to enforce pre-commit formatting and linting checks.
  • Added pre-commit hook to run formatting (e.g., Prettier) and linting (e.g., ESLint).
  • Updated package.json with Husky configuration and scripts.
  • Included image and video demonstrating the pre-commit hook in action.

Testing

  • Verified that formatting and linting checks run before commits.
  • Ensured commits are blocked if there are issues.

media

Untitled design
Untitled design (1)

Recording.2024-12-04.000912-VEED.mp4

Checklist

  • Husky is installed and configured.
  • remove unneceesary checks in formatting
  • added linting and formatting rules in pre commit hook
  • Pre-commit hook runs successfully.

Developer Notes

  • To bypass checks in emergencies: git commit -m "message" --no-verify

related issue

closes #94

@Rajgupta36
Copy link
Contributor Author

@Pranav0-0Aggarwal sir , pls review this pr

@Pranav0-0Aggarwal Pranav0-0Aggarwal merged commit c6046bd into AOSSIE-Org:main Dec 16, 2024
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.

Improvement: Implement Husky for Automated Pre-commit Code Quality Checks
2 participants