Skip to content

fix(web): check staged files without lint-staged - #111

Merged
cskwork merged 1 commit into
devfrom
fix/web-staged-checks
Nov 18, 2026
Merged

cskwork merged 1 commit into
devfrom
fix/web-staged-checks

Conversation

@cskwork

@cskwork cskwork commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace lint-staged in the web pre-commit hook to remove the vulnerable picomatch dependency flagged by GHSA-fc5q-39xc-vjpf.
  • Run the existing Biome checks and fixes against staged JS/TS content. Generate themes from staged inputs. Apply formatting back only when the working copy exactly matches the staged input. Preserve all partially staged working files byte-for-byte.
  • Install the nested Husky hook from the repository root. If Git supplies a temporary index for a path-limited commit that needs fixes, the hook asks the developer to stage the paths and use a normal commit.

Verification

  • npm audit --audit-level=low reported zero vulnerabilities.
  • 85 web tests passed, including real Git commit fixtures for the pre-commit hook.
  • The static build passed.

This update addresses the shared frontend audit failure on #109 and #110. The required checks and audit threshold stay in place.

Run Biome and theme generation on an index snapshot. Keep partially staged working files intact while removing the picomatch dependency flagged by the required frontend audit.

Refs #109, #110
@cskwork
cskwork merged commit 343f7c3 into dev Nov 18, 2026
7 checks passed
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