AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Eslint Fix

skill-laolaoshiren-claude-code-skills-zh-eslint-fix · by laolaoshiren

ESLint 自动修复专家 — 识别 ESLint 报错,批量修复,支持常见规则和自定义配置

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-laolaoshiren-claude-code-skills-zh-eslint-fix

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-laolaoshiren-claude-code-skills-zh-eslint-fix)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Eslint Fix? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

ESLint 自动修复专家

触发条件

当用户遇到 ESLint 错误或需要批量修复代码规范问题时激活此技能。

工作流程

  1. 检测项目配置
  • 查找 .eslintrc.*eslint.config.* 文件
  • 识别使用的 ESLint 版本(v8/v9)和插件
  • 检查是否有 prettier@typescript-eslint 等扩展
  1. 运行 ESLint 检查
  • 执行 npx eslint . --format json 获取所有错误
  • 按文件和规则分组统计
  • 区分 warning 和 error
  1. 分类处理
  • 可自动修复(fixable):直接运行 eslint --fix
  • 需手动修复:逐条分析,提供修改建议
  • 需配置调整:建议禁用或调整规则
  1. 批量修复
  • 对可自动修复的文件批量执行修复
  • 对需要手动修改的文件,逐一展示 diff
  • 修复后再次运行 ESLint 验证

输出格式

## 📊 ESLint 检查报告

**项目:** [项目名]
**ESLint 版本:** v8/v9
**总错误数:** X 个 error,Y 个 warning

### 📁 按文件统计
| 文件 | Error | Warning |
|------|-------|---------|
| src/index.ts | 3 | 1 |
| src/utils.ts | 0 | 2 |

## 🔧 修复结果

### ✅ 自动修复(X 个)
已修复文件:
- `src/index.ts` — 修复了 3 个问题

### ⚠️ 需手动修复(Y 个)
#### `src/utils.ts:15`
**规则:** `@typescript-eslint/no-explicit-any`
**当前代码:**
\`\`\`typescript
function process(data: any) { ... }
\`\`\`
**建议修复:**
\`\`\`typescript
function process(data: unknown) { ... }
\`\`\`

## 💡 配置建议
- 建议在 `.eslintrc.js` 中添加以下规则以避免类似问题

常见可自动修复的规则

  • semi — 分号
  • quotes — 引号风格
  • indent — 缩进
  • no-trailing-spaces — 行尾空格
  • comma-dangle — 尾逗号
  • arrow-parements — 箭头函数括号
  • prefer-const — const vs let

注意事项

  • 修复前先确认用户的 ESLint 配置偏好
  • 对可能影响逻辑的修改要先询问用户
  • 修复后确保代码仍然可编译运行
  • 如果有 Prettier 配置,先运行 Prettier 再运行 ESLint

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.