fix

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Fix Lint and Formatting

修复Lint错误与代码格式

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
  1. 运行
    yarn prettier
    来修复代码格式
  2. 运行
    yarn linc
    检查剩余的lint问题
  3. 记录所有仍需手动修复的问题

Common Mistakes

常见误区

  • Running prettier on wrong files -
    yarn prettier
    only formats changed files
  • Ignoring linc errors - These will fail CI, fix them before committing
  • 对错误文件运行prettier -
    yarn prettier
    仅格式化已修改的文件
  • 忽略linc错误 - 这些错误会导致CI失败,请在提交前修复