eslint-config
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.
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
Weekly Installs
8
Repository
jsonlee12138/promptsGitHub Stars
1
First Seen
12 days ago
Security Audits
Installed on
codex6
claude-code5
opencode2
gemini-cli2
antigravity2
github-copilot2