lint
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLinting
Linting
Standard Command
标准命令
npm run linttsc --noEmit && eslintnpm run linttsc --noEmit && eslintWorkflow
工作流程
- Run
npm run lint - For fixes:
npm run lint-fix - Report file:line references
- 运行
npm run lint - 如需修复:
npm run lint-fix - 报告文件:行号引用信息
Rules
规则
- Use project's scripts
package.json - Never use directly
npx - Don't auto-fix unless requested
- 使用项目的 脚本
package.json - 切勿直接使用
npx - 除非用户要求,否则不要自动修复