antfu

Standardize JavaScript/TypeScript projects with ESLint, strict TypeScript, PNPM, and Git hooks.

8|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/alexanderop/nuxt-sync-engine --skill antfu-alexanderop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: antfu
Source: https://github.com/alexanderop/nuxt-sync-engine/tree/main/.claude/skills/antfu
Command: npx skills add https://github.com/alexanderop/nuxt-sync-engine --skill antfu-alexanderop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill consolidates Anthony Fu's tooling preferences to help teams quickly bootstrap projects with consistent conventions and quality gates.

Core Features & Use Cases

  • Opinionated Tooling: Standardize ESLint config, TypeScript settings, and project structure with @antfu/eslint-config and strict TS.
  • Monorepo & DX: Guidance for monorepos, centralized aliases, and streamlined npm scripts across packages.
  • Quality & Automation: Git hooks, lint-staged, and CI-friendly patterns to maintain consistent code quality.

Use Case: A startup wants to spin up new libraries and apps with the same foundational tooling and checks, avoiding configuration drift.

Quick Start

Apply Anthony Fu's conventions to initialize a new project, install dependencies with pnpm, and enable the provided linting, typing, and git-hook configurations.

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 strict mode for a new JavaScript project?

To set up ESLint and TypeScript strict mode, you can apply Anthony Fu's opinionated tooling conventions. This standardizes your project structure and enables automated quality checks to ensure consistent code standards across your team.

What is the best way to configure lint-staged and Git hooks for consistent code quality?

The best way to configure lint-staged and Git hooks is by applying Anthony Fu's conventions, which implement CI-friendly patterns and automated checks. This enforces consistent code quality by running linting and typing validations before commits are processed.

How do I manage PNPM workflows and centralized aliases in a monorepo?

You can manage PNPM workflows and centralized aliases in a monorepo by applying Anthony Fu's tooling guidelines. This approach provides streamlined npm scripts and structured configurations across multiple packages to prevent configuration drift.

Does this tooling approach work for both new library publishing and monorepo workflows?

Yes, this tooling approach works for both new library publishing and monorepo workflows. It provides predictable configurations and automated checks to maintain consistent quality standards across various team setups and project scales.

Can I use @antfu/eslint-config to standardize tooling across multiple packages?

Yes, you can use @antfu/eslint-config to standardize tooling across multiple packages. It centralizes ESLint and TypeScript configurations, ensuring that all packages within a monorepo adhere to the same strict coding standards.

Why should I use opinionated tooling to bootstrap a TypeScript monorepo?

You should use opinionated tooling to bootstrap a TypeScript monorepo to avoid configuration drift. It consolidates guidelines for ESLint, TypeScript, and Git hooks, allowing teams to quickly spin up libraries and apps with the same foundational checks.