ESLint Config Generator
生成专业的 ESLint 配置,支持 React, Vue, TypeScript, Airbnb, Standard 等主流规范,一键配置代码规范。
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 220 · 2 current installs · 2 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download zipconfigeslintjavascriptlatestlinter
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
🔧 Clawdis
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
变现思路
- 预设配置销售 - 专业配置模板
- 企业服务 - 定制代码规范
- 培训 - 代码规范培训
安装
# 无需额外依赖
Files
3 totalSelect a file
Select a file to preview.
Comments
Loading comments…
