setup-eslint

Installation
SKILL.md

Setup ESLint

Scope

  • Confirm the project and CI can satisfy Node.js ^20.19.0 || ^22.13.0 || >=24
  • Ensure eslint and @zhangyu1818/eslint-config are in devDependencies
  • Create or update eslint.config.* using defineConfig
  • Derive presets from project dependencies and structure
  • Add lint scripts when missing

Workflow

  1. Inspect project (package.json, lockfiles, Node version/engines, existing ESLint configs)
  2. Confirm the project can move to Node.js ^20.19.0 || ^22.13.0 || >=24; if not, stop and report the blocker
  3. Install or upgrade deps (eslint@^10 and @zhangyu1818/eslint-config)
  4. Create or update eslint.config.* (prefer existing flat-config extension; otherwise eslint.config.mjs)
  5. Configure presets based on detected stack
  6. Add scripts if missing
  7. Verify if requested
Installs
6
GitHub Stars
1
First Seen
Feb 2, 2026
setup-eslint — zhangyu1818/eslint-config