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 从公开仓库中收录这些内容。

举报或申请下架