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

Integrating Pre-commit hook & Eslints Testing #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Naman-B-Parlecha
Copy link
Contributor

Description:

This PR introduces a Husky pre-commit hook to automatically run ESLint and Prettier before code is committed. This will help ensure that only clean, well-formatted code makes it into the repository, improving code quality and streamlining the development process.

The pre-commit hook will run only on staged files, so it will check the changes that are about to be committed, preventing broken or improperly formatted code from being committed.

Features:

  • Husky pre-commit hook is integrated to run checks on staged files.
  • ESLint runs to catch linting errors before commit.
  • Prettier is used to ensure consistent code formatting.
  • The pre-commit hook ensures that only properly linted and formatted code is committed, saving time in code reviews and CI processes.

This PR Closes #117

Checklist:

  • Husky is set up and configured to run the pre-commit hook.
  • ESLint and Prettier are integrated and properly configured.

With Error Code Commiting :

loading_with_error
commiting_with_error

WithOut Error Code Commiting :

without_error_loading
without_error_commiting

@Naman-B-Parlecha
Copy link
Contributor Author

@Aditya062003 @Roaster05 awaiting your review!!

@Aditya062003
Copy link
Contributor

@Roaster05 please have a look at this!

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.

Add Pre-commit Hook for Linting and Formatting with Husky
2 participants