← 返回 Skills 市场
sunshine-del-ux

ESLint Config Generator

作者 Sunshine-del-ux · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
429
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install eslint-config-generator
功能描述
生成专业的 ESLint 配置,支持 React, Vue, TypeScript, Airbnb, Standard 等主流规范,一键配置代码规范。
使用说明 (SKILL.md)

ESLint Config Generator

生成专业的 ESLint 配置文件,统一团队代码风格。

功能

  • ⚡ 一键生成配置
  • 🎯 多种规范预设
  • 🔄 自动安装依赖
  • 📝 支持多种框架

支持的规范

规范 说明 适用
airbnb Airbnb JavaScript 风格 主流项目
standard Standard JS 风格 简单项目
prettier Prettier 兼容配置 格式化优先
react React + Airbnb React 项目
vue Vue 3 + ESLint Vue 项目
typescript TypeScript 最佳实践 TS 项目

使用方法

基本用法

# 使用 Airbnb 规范
eslint-config-generator --preset airbnb

# React + TypeScript
eslint-config-generator --preset react-typescript

# Vue 3
eslint-config-generator --preset vue

选项

选项 说明
--preset, -p 规范预设
--output, -o 输出文件
--install 自动安装依赖

输出文件

{
  "extends": ["airbnb"],
  "rules": {
    "no-unused-vars": "warn",
    "react/react-in-jsx-scope": "off"
  },
  "env": {
    "browser": true,
    "es2021": true,
    "node": true
  }
}

安装依赖

npm install -D eslint eslint-config-airbnb eslint-plugin-react

变现思路

  1. 预设配置销售 - 专业配置模板
  2. 企业服务 - 定制代码规范
  3. 培训 - 代码规范培训

安装

# 无需额外依赖
安全使用建议
This skill is small and local: it will create or overwrite .eslintrc.json in the current directory using the first argument as the extends value. It does not automatically install npm packages despite the README claiming '自动安装依赖'—you should run npm install -D <packages> yourself if needed. Review any preset names you pass (they become the extends entry and may refer to packages you must install). If you need features like --output or --install, confirm the implementation or extend the script before relying on them.
功能分析
Type: OpenClaw Skill Name: eslint-config-generator Version: 1.0.0 The `eslint-config-generator.sh` script is vulnerable to JSON injection. It directly interpolates the `$PRESET` argument into the `.eslintrc.json` file without any sanitization. This allows an attacker to craft the `--preset` value (e.g., `airbnb", "scripts": {"preinstall": "echo PWNED"}`) to inject arbitrary JSON content, potentially leading to malformed or malicious configuration files that could be exploited by other tools processing the `.eslintrc.json`.
能力评估
Purpose & Capability
The name/description promise multi-framework presets and 'automatic dependency installation', but the included shell script only writes a .eslintrc.json with the first argument as the extends value. Generating a config file is consistent with the purpose, but the script does not implement automatic dependency installation or advanced preset handling described in SKILL.md.
Instruction Scope
SKILL.md shows CLI options like --preset, --output, and --install and suggests npm install examples. The runtime artifact (eslint-config-generator.sh) only accepts a single positional preset and writes .eslintrc.json; it does not read unrelated files, environment variables, or contact external endpoints. The instructions are generally scoped to ESLint tasks but are more feature-rich than the script supports.
Install Mechanism
No install spec is provided and the skill is instruction-only with a tiny shell script. Nothing is downloaded or written beyond the simple script's output, so there is low install risk.
Credentials
The skill requests no environment variables, credentials, or config paths. That aligns with its simple behavior of creating a local .eslintrc.json.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide privileges. It only writes a .eslintrc.json in the current working directory, which is expected for this utility.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install eslint-config-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /eslint-config-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of eslint-config-generator. - 一键生成专业 ESLint 配置,支持主流规范(Airbnb, Standard, Prettier, React, Vue, TypeScript) - 自动安装相应依赖,简化配置流程 - 支持多种框架与项目类型 - 提供命令行选项(preset、output、install)便于自定义 - 完整文档,涵盖用法说明、输出示例、安装和变现方案
元数据
Slug eslint-config-generator
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

ESLint Config Generator 是什么?

生成专业的 ESLint 配置,支持 React, Vue, TypeScript, Airbnb, Standard 等主流规范,一键配置代码规范。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 429 次。

如何安装 ESLint Config Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install eslint-config-generator」即可一键安装,无需额外配置。

ESLint Config Generator 是免费的吗?

是的,ESLint Config Generator 完全免费(开源免费),可自由下载、安装和使用。

ESLint Config Generator 支持哪些平台?

ESLint Config Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ESLint Config Generator?

由 Sunshine-del-ux(@sunshine-del-ux)开发并维护,当前版本 v1.0.0。

💬 留言讨论