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
eslintand@zhangyu1818/eslint-configare in devDependencies - Create or update
eslint.config.*usingdefineConfig - Derive presets from project dependencies and structure
- Add lint scripts when missing
Workflow
- Inspect project (package.json, lockfiles, Node version/engines, existing ESLint configs)
- Confirm the project can move to Node.js
^20.19.0 || ^22.13.0 || >=24; if not, stop and report the blocker - Install or upgrade deps (
eslint@^10and@zhangyu1818/eslint-config) - Create or update
eslint.config.*(prefer existing flat-config extension; otherwiseeslint.config.mjs) - Configure presets based on detected stack
- Add scripts if missing
- Verify if requested