Skip to content

Integrate ESLint with Husky for Pre-commit Hook, Add Vitest for UI & API Test Cases#137

Merged
sb-decoder merged 5 commits intosb-decoder:mainfrom
code-soubhik:feat/test
Oct 6, 2025
Merged

Integrate ESLint with Husky for Pre-commit Hook, Add Vitest for UI & API Test Cases#137
sb-decoder merged 5 commits intosb-decoder:mainfrom
code-soubhik:feat/test

Conversation

@code-soubhik
Copy link
Copy Markdown
Contributor

PR Description:

This pull request introduces the following changes to the project:

  • ESLint Integration:

    • Configured ESLint with a pre-commit hook using Husky to automatically lint and fix code before each commit.
    • The ESLint rules have been set up to enforce code quality and consistent formatting.
  • Husky Setup:

    • Integrated Husky with the pre-commit hook to run lint-staged, which ensures that only the staged files are linted and fixed, improving performance.
  • Vitest Test Cases:

    • Added Vitest test cases for both UI and API functionality.
    • The tests are now executed automatically as part of the pre-commit process to ensure code correctness before commits.
  • Code Cleanups:

    • Minor cleanups were made to improve code readability and consistency across the project.
    • Redundant or unused code was removed, and some configurations were updated.

This update enhances the development workflow by enforcing code quality checks and running tests automatically before commits, reducing the risk of introducing errors.

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 5, 2025

@code-soubhik is attempting to deploy a commit to the Sowham Bhuin's projects Team on Vercel.

A member of the Team first needs to authorize it.

@code-soubhik
Copy link
Copy Markdown
Contributor Author

code-soubhik commented Oct 5, 2025

Issue: #131
Fixes: #131

@code-soubhik
Copy link
Copy Markdown
Contributor Author

@sb-decoder
Have a look and merge as it, as it contains large number of updates.

@sb-decoder
Copy link
Copy Markdown
Owner

sb-decoder commented Oct 6, 2025

@code-soubhik Did you check full website is working properly or not after these changes?

@code-soubhik
Copy link
Copy Markdown
Contributor Author

@sb-decoder
Yes I have tested it's working well

image

@sb-decoder sb-decoder merged commit 4abd0b9 into sb-decoder:main Oct 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants