chore: add husky pre-commit hook to run lint,prettier and formatting#1356
Merged
NishaSharma14 merged 7 commits intodevelopmentfrom Feb 12, 2026
Merged
chore: add husky pre-commit hook to run lint,prettier and formatting#1356NishaSharma14 merged 7 commits intodevelopmentfrom
NishaSharma14 merged 7 commits intodevelopmentfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
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
preparescript andlint-stagedconfiguration inpackage.json. - Add a Husky
pre-commithook to runlint-staged. - Update lockfiles to include
husky/lint-stagedand 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). |
vcnainala
approved these changes
Feb 11, 2026
…o auto-hook-to-run-test-lint
…Chem/nmrxiv into auto-hook-to-run-test-lint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.