[PR #41] [MERGED] feat: add lint-staged and husky for pre-commit hooks #44

Closed
opened 2026-10-27 21:09:04 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/41
Author: @snomiao
Created: 8/3/2025
Status: ✅ Merged
Merged: 8/3/2025
Merged by: @snomiao

Base: main ← Head: sno-setup-lint-stage


📝 Commits (1)

  • 56fca39 feat: add lint-staged and husky for pre-commit hooks

📊 Changes

3 files changed (+59 additions, -8 deletions)

View changed files

➕ .husky/pre-commit (+1 -0)
📝 bun.lock (+39 -1)
📝 package.json (+19 -7)

📄 Description

Summary

  • Adds lint-staged to run ESLint and Prettier on staged files during commit
  • Configures husky for pre-commit hook management
  • Ensures consistent code formatting and linting across the codebase

Test plan

  • Install lint-staged and husky dependencies
  • Configure lint-staged rules for JS/TS and JSON/MD/YAML files
  • Set up pre-commit hook with husky
  • Test lint-staged execution on commit

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/Comfy-PR/pull/41 **Author:** [@snomiao](https://github.com/snomiao) **Created:** 8/3/2025 **Status:** ✅ Merged **Merged:** 8/3/2025 **Merged by:** [@snomiao](https://github.com/snomiao) **Base:** `main` ← **Head:** `sno-setup-lint-stage` --- ### 📝 Commits (1) - [`56fca39`](https://github.com/Comfy-Org/Comfy-PR/commit/56fca39cd8132f8f65b14f5cbadd8965e44d16e0) feat: add lint-staged and husky for pre-commit hooks ### 📊 Changes **3 files changed** (+59 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `.husky/pre-commit` (+1 -0) 📝 `bun.lock` (+39 -1) 📝 `package.json` (+19 -7) </details> ### 📄 Description ## Summary - Adds lint-staged to run ESLint and Prettier on staged files during commit - Configures husky for pre-commit hook management - Ensures consistent code formatting and linting across the codebase ## Test plan - [x] Install lint-staged and husky dependencies - [x] Configure lint-staged rules for JS/TS and JSON/MD/YAML files - [x] Set up pre-commit hook with husky - [x] Test lint-staged execution on commit 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 21:09:04 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/Comfy-PR#44
No description provided.