← Back to Skills Marketplace
sunshine-del-ux

ESLint Config Generator

by Sunshine-del-ux · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
429
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install eslint-config-generator
Description
生成专业的 ESLint 配置,支持 React, Vue, TypeScript, Airbnb, Standard 等主流规范,一键配置代码规范。
README (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. 培训 - 代码规范培训

安装

# 无需额外依赖
Usage Guidance
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.
Capability Analysis
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`.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install eslint-config-generator
  3. After installation, invoke the skill by name or use /eslint-config-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of eslint-config-generator. - 一键生成专业 ESLint 配置,支持主流规范(Airbnb, Standard, Prettier, React, Vue, TypeScript) - 自动安装相应依赖,简化配置流程 - 支持多种框架与项目类型 - 提供命令行选项(preset、output、install)便于自定义 - 完整文档,涵盖用法说明、输出示例、安装和变现方案
Metadata
Slug eslint-config-generator
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is ESLint Config Generator?

生成专业的 ESLint 配置,支持 React, Vue, TypeScript, Airbnb, Standard 等主流规范,一键配置代码规范。 It is an AI Agent Skill for Claude Code / OpenClaw, with 429 downloads so far.

How do I install ESLint Config Generator?

Run "/install eslint-config-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ESLint Config Generator free?

Yes, ESLint Config Generator is completely free (open-source). You can download, install and use it at no cost.

Which platforms does ESLint Config Generator support?

ESLint Config Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ESLint Config Generator?

It is built and maintained by Sunshine-del-ux (@sunshine-del-ux); the current version is v1.0.0.

💬 Comments