eslint-config
Installation
SKILL.md
ESLint Config
Overview
Set up ESLint using @antfu/eslint-config for either a single project or a workspace package, and optionally enforce commit quality with commitlint + husky + lint-staged.
Decision
- Single project: Choose when you have one app/package.
- Workspace package: Choose when multiple apps need a shared ESLint config in a monorepo.
Quick Workflow
- Choose single vs workspace.
- Install dependencies.
- Create
eslint.config.js(flat config). - Add
lintscripts. - Run
pnpm lintto verify. - Add commit quality hooks (
.commitlintrc.cjs,.husky/*,.lintstagedrc) if the team wants linting and commit message checks before push.