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

  1. Choose single vs workspace.
  2. Install dependencies.
  3. Create eslint.config.js (flat config).
  4. Add lint scripts.
  5. Run pnpm lint to verify.
  6. Add commit quality hooks (.commitlintrc.cjs, .husky/*, .lintstagedrc) if the team wants linting and commit message checks before push.
Installs
11
GitHub Stars
2
First Seen
Mar 4, 2026
eslint-config — jsonlee12138/prompts