lint

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Linting

Linting

Standard Command

标准命令

npm run lint
- runs
tsc --noEmit && eslint
npm run lint
- 运行
tsc --noEmit && eslint

Workflow

工作流程

  1. Run
    npm run lint
  2. For fixes:
    npm run lint-fix
  3. Report file:line references
  1. 运行
    npm run lint
  2. 如需修复:
    npm run lint-fix
  3. 报告文件:行号引用信息

Rules

规则

  • Use project's
    package.json
    scripts
  • Never use
    npx
    directly
  • Don't auto-fix unless requested
  • 使用项目的
    package.json
    脚本
  • 切勿直接使用
    npx
  • 除非用户要求,否则不要自动修复