Fix

react/react/.claude/skills/fix

作者 reactb618bbb44226無授權條款250K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

AI 產生的概覽

執行專案的格式化與 lint 指令,在提交前修正程式碼風格問題。

功能
此技能指示代理執行專案的 prettier 指令來修正格式,接著執行 linc 指令檢查剩餘的 lint 問題。它會回報仍需手動修正的 lint 問題。它產出的是剩餘問題報告,而非直接修改檔案。
適用情境
當出現 lint 錯誤或格式問題,或在提交程式碼前需要確保通過 CI 時使用。它適用於已設定 yarn prettier 與 yarn linc 指令的專案。
執行需求
需要已設定 yarn 以及 prettier 與 linc 指令的專案。此技能不隨附指令碼,僅為說明性指示。

Fix Lint and Formatting

Instructions

  1. Run yarn prettier to fix formatting
  2. Run yarn linc to check for remaining lint issues
  3. Report any remaining manual fixes needed

Common Mistakes

  • Running prettier on wrong files - yarn prettier only formats changed files
  • Ignoring linc errors - These will fail CI, fix them before committing

來源與署名

來源:react/react位於.claude/skills/fix提交b618bbb

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架