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

Improvement: Implement Husky for Automated Pre-commit Code Quality Checks #94

Closed
Rajgupta36 opened this issue Dec 3, 2024 · 1 comment · Fixed by #95
Closed

Improvement: Implement Husky for Automated Pre-commit Code Quality Checks #94

Rajgupta36 opened this issue Dec 3, 2024 · 1 comment · Fixed by #95

Comments

@Rajgupta36
Copy link
Contributor

Rajgupta36 commented Dec 3, 2024

Description

We need to implement Husky to enforce code quality standards by running linting and formatting checks before code is committed to the repository. This will help maintain consistent code quality across all PRs going to main.

Current Problem

  • Code quality checks are not enforced before commits
  • Inconsistent code formatting and linting issues are sometimes discovered after PRs are created
  • Manual intervention required to fix formatting/linting issues during code review

Proposed Solution

  • Implement Husky pre-commit hooks to:
  • Run ESLint for code linting
  • Run Prettier for code formatting
  • Block commits if checks fail
  • Provide clear feedback to developers about failing checks

Expected Outcome

  • All commits to any branch will be checked for code quality
  • Developers receive immediate feedback about code quality issues
  • Consistent code style across the codebase
@Rajgupta36
Copy link
Contributor Author

Rajgupta36 commented Dec 3, 2024

@Pranav0-0Aggarwal sir, i am working on this issue

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 a pull request may close this issue.

1 participant