antfu

Apply Anthony Fu's ESLint configuration and tooling conventions to JavaScript/TypeScript projects.

21|1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/ShenQingchuan/locus-agent --skill antfu-shenqingchuan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: antfu
Source: https://github.com/ShenQingchuan/locus-agent/tree/main/.agents/skills/antfu
Command: npx skills add https://github.com/ShenQingchuan/locus-agent --skill antfu-shenqingchuan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized, opinionated set of tooling and conventions for JavaScript/TypeScript projects, ensuring consistency and best practices.

Core Features & Use Cases

  • Project Setup: Guides on setting up new projects with preferred linters, formatters, and Git hooks.
  • Coding Standards: Enforces best practices for code organization, TypeScript usage, and comments.
  • Tooling Integration: Integrates tools like ESLint, Prettier, Vitest, and pnpm workspaces.
  • Use Case: When starting a new project or refactoring an existing one, use this Skill to quickly establish a robust and maintainable development environment following Anthony Fu's proven methodologies.

Quick Start

Apply Anthony Fu's ESLint configuration to the current project.

Frequently Asked Questions about antfu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up ESLint and TypeScript conventions for a new monorepo project?

To set up ESLint and TypeScript conventions for a monorepo, apply Anthony Fu's opinionated ESLint configuration and use pnpm workspaces. This enforces standardized code organization, TypeScript best practices, and automated linting across your project.

What is the best way to configure Vitest testing strategies in a TypeScript project?

The best way to configure Vitest testing strategies is by adopting Anthony Fu's coding conventions, which provide opinionated Vitest configurations and best practices. This ensures robust test execution and consistent behavior across your TypeScript project.

Can I use pnpm catalogs and simple-git-hooks to streamline development workflows?

Yes, you can use pnpm catalogs and simple-git-hooks to streamline development workflows. Anthony Fu's conventions integrate these tools to manage shared dependency versions and automate Git hook executions for consistent formatting.

How do I apply Anthony Fu's coding conventions to an existing JavaScript project?

To apply Anthony Fu's coding conventions to an existing JavaScript project, integrate his opinionated ESLint configuration and @antfu/ni commands. This refactors your project to follow standardized tooling, TypeScript usage, and commenting guidelines.

Does this coding convention work with Prettier for formatting JavaScript files?

Anthony Fu's coding conventions integrate ESLint, Prettier, and other tooling to enforce code organization and formatting. It provides a standardized, opinionated setup to ensure consistency and best practices across JavaScript and TypeScript files.