jsonlee12138/prompts · Archived

eslint-config

Use when configuring ESLint with @antfu/eslint-config for a single project or a monorepo workspace, including flat config setup, shared config packages, commit quality hooks, or migrations from legacy ESLint configs.

First seen Mar 4, 2026

Installation

$ npx skills add jsonlee12138/prompts --skill eslint-config

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from jsonlee12138/prompts · top by installs.

npx skills add jsonlee12138/prompts

Browse all from jsonlee12138/prompts

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License LICENSE
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,520 B
  • docs SUMMARY.md 237 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 11 installs

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.

Common Mistakes

  • Mixing Prettier with ESLint formatting rules (prefer ESLint-only).
  • Using legacy .eslintrc instead of eslint.config.js.
  • Forgetting to build/publish the shared workspace config.
  • Creating .lintstagedrc with unsupported syntax for your chosen format.
  • Missing commit-msg hook, so commit message rules never run.
  • Forgetting package.json config.commitizen.path, so cz-git is not picked up.

Resources

  • references/single-project.md
  • references/workspace.md
  • references/vscode-settings.md
  • references/commit-quality.md