Skip to content

chore: add husky pre-commit hook to run lint,prettier and formatting#1356

Merged
NishaSharma14 merged 7 commits intodevelopmentfrom
auto-hook-to-run-test-lint
Feb 12, 2026
Merged

chore: add husky pre-commit hook to run lint,prettier and formatting#1356
NishaSharma14 merged 7 commits intodevelopmentfrom
auto-hook-to-run-test-lint

Conversation

@NishaSharma14
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.92%. Comparing base (bdec4a6) to head (02307b2).

Additional details and impacted files
@@              Coverage Diff               @@
##             development    #1356   +/-   ##
==============================================
  Coverage          72.92%   72.92%           
  Complexity          2358     2358           
==============================================
  Files                209      209           
  Lines               9094     9094           
==============================================
  Hits                6632     6632           
  Misses              2462     2462           
Flag Coverage Δ
unittests 72.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Git hooks tooling to enforce code quality checks on staged files before commits, integrating with the existing JS (ESLint/Prettier) and PHP (Pint) formatting workflow.

Changes:

  • Add Husky prepare script and lint-staged configuration in package.json.
  • Add a Husky pre-commit hook to run lint-staged.
  • Update lockfiles to include husky/lint-staged and their transitive dependencies.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
package.json Adds Husky + lint-staged configuration and devDependencies to run format/lint on staged files.
.husky/pre-commit Introduces the pre-commit hook that triggers lint-staged.
package-lock.json Locks new Husky/lint-staged dependency graph for npm-based installs/CI.
yarn.lock Updates Yarn lockfile (appears incidental given npm-based CI).

@NishaSharma14 NishaSharma14 linked an issue Feb 11, 2026 that may be closed by this pull request
@NishaSharma14 NishaSharma14 merged commit 420029c into development Feb 12, 2026
2 of 4 checks passed
@NishaSharma14 NishaSharma14 deleted the auto-hook-to-run-test-lint branch February 12, 2026 12:21
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 hook to run lint and formatting after every commit.

3 participants