eslint-config
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.
Common Mistakes
- Mixing Prettier with ESLint formatting rules (prefer ESLint-only).
- Using legacy
.eslintrcinstead ofeslint.config.js. - Forgetting to build/publish the shared workspace config.
- Creating
.lintstagedrcwith unsupported syntax for your chosen format. - Missing
commit-msghook, so commit message rules never run. - Forgetting
package.jsonconfig.commitizen.path, socz-gitis not picked up.
Resources
references/single-project.mdreferences/workspace.mdreferences/vscode-settings.mdreferences/commit-quality.md
More from jsonlee12138/prompts
design-patterns-principles
Use when a request asks for software design patterns or design principles, including explanations, comparisons, summaries, or quick reference grounded in local docs.
16vite-tanstack
TanStack (Router/Query/Form/Table) configuration guide for Vite + React projects. Covers Vite plugin setup, main.tsx registration, DevTools configuration, and editor settings. Use when setting up or reviewing TanStack config in a Vite project. Triggers on: vite-tanstack, tanstack config, tanstack router setup, tanstack query setup, tanstack form setup, tanstack table setup.
15unocss-shadcn
Configure UnoCSS with unocss-preset-shadcn using a semi-automatic, framework-agnostic workflow. Use when setting up or updating UnoCSS + shadcn integration, deciding monorepo vs single-project component destinations, enforcing peerDependencies in monorepos, and requiring shadcn MCP + manual component creation mode.
9brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Turn rough ideas into validated brainstorming/design docs through one-question-at-a-time dialogue, role-based analysis, and explicit user approval. Use when users ask to brainstorm, shape requirements, compare approaches, or produce a planning/design document before implementation.
4solo-ops
>
1claude-design
Unified design workflow router for critique, accessibility review, developer handoff, design system work, UX copy, user research, and research synthesis. Use when users ask naturally for design feedback, mockup review, a11y audit, handoff specs, UX writing, research planning, research synthesis, or mention Figma, Pencil, or HTML design workflows and should not need to invoke separate sub-skills manually.
1