feat: opt claude
This commit is contained in:
24
.claude/commands/lint.md
Normal file
24
.claude/commands/lint.md
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
description: 运行前端代码检查和格式化
|
||||
---
|
||||
|
||||
# 前端代码质量检查
|
||||
|
||||
执行以下操作:
|
||||
|
||||
1. 切换到 plus-ui 目录
|
||||
2. 运行 ESLint 检查并自动修复
|
||||
3. 运行 Prettier 格式化代码
|
||||
4. 显示检查结果
|
||||
|
||||
使用命令:
|
||||
```bash
|
||||
cd plus-ui
|
||||
npm run lint:eslint:fix
|
||||
npm run prettier
|
||||
```
|
||||
|
||||
检查以下文件类型:
|
||||
- *.vue (Vue 组件)
|
||||
- *.ts (TypeScript 文件)
|
||||
- *.tsx (TypeScript JSX)
|
||||
Reference in New Issue
Block a user