Skip to content

fix(husky): keep pre-commit for lint/format/typecheck and move audit …#7

Merged
vikashship merged 1 commit into
masterfrom
fix/husky-precommit-ci-audit-split
Mar 25, 2026
Merged

fix(husky): keep pre-commit for lint/format/typecheck and move audit …#7
vikashship merged 1 commit into
masterfrom
fix/husky-precommit-ci-audit-split

Conversation

@vikashship
Copy link
Copy Markdown
Owner

Description

This PR updates the Husky and lint-staged workflow so pre-commit only runs formatting, linting, and type checks. Security audit is moved out of pre-commit and kept as a manual command.

Changes

  • Removed audit execution from pre-commit path via .lintstagedrc.json
  • Kept pre-commit focused on fast local quality checks using .husky/pre-commit
  • Added manual audit command in package.json:
    • security:audit -> yarn audit --level moderate

Why

Pre-commit was failing due to dependency vulnerabilities and blocking normal commits. This change keeps developer workflow fast while preserving a clear manual security check.

How To Run Security Check

yarn security:audit

Impact

  • Faster and more reliable local commits
  • No loss of security visibility
  • Security audit can be enforced in CI separately

If you want, next I can also draft a CI step snippet to run yarn security:audit only on PR/push.

@vikashship vikashship merged commit e1d83be into master Mar 25, 2026
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.

1 participant