need4deed-org/fe

chore: remove commented-out code throughout the codebase

已關閉

#280 建立於 2026年3月30日

 (3 則留言) (0 個反應) (0 位負責人)TypeScript (21 個分叉)auto 404
Team requestchoreenhancementgood first issue

倉庫指標

星標
 (2 顆星)
PR 合併指標
 (平均合併 3天 14小時) (30 天內合併 41 個 PR)

描述

What

There are commented-out code blocks scattered across the FE codebase (dead code left behind from refactors or experiments). These add noise and make the code harder to read.

Task

Do a codebase-wide sweep and delete any block-commented code that is no longer relevant. Use judgment — leave comments that explain why something works the way it does, but remove chunks of old code that are commented out rather than deleted.

How to find them

# Find likely candidates (commented-out JSX or TS)
grep -rn '//' src/ | grep -v 'node_modules' | grep -E '//\s+<|//\s+const|//\s+return|//\s+import'

Acceptance criteria

  • No block-commented code remains that represents old/unused logic
  • Explanatory comments (describing why, not what) are left in place

貢獻者指南