antfu

Configure JavaScript/TypeScript projects with pnpm, strict TypeScript, and Vitest.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/lyzno1/flux --skill antfu-lyzno1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: antfu
Source: https://github.com/lyzno1/flux/tree/main/.agents/skills/antfu
Command: npx skills add https://github.com/lyzno1/flux --skill antfu-lyzno1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill captures Anthony Fu's opinionated tooling and conventions to streamline starting new JavaScript/TypeScript projects, configure ESLint/Prettier options, and guide monorepo and library publishing decisions.

Core Features & Use Cases

  • Opinionated project setup: pnpm with @antfu/ni, strict TypeScript with ES Module output.
  • Tooling conventions: Vitest for testing, simple-git-hooks + lint-staged for Git hooks.
  • Use Case: When starting a new TypeScript library or app, apply these conventions to speed setup and ensure consistency across repos.

Quick Start

Use Anthony Fu's preferences to bootstrap a new TypeScript project by selecting pnpm, TS, and linting rules as described above.

Frequently Asked Questions about antfu

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

FAQPage Schema
How do I bootstrap a new TypeScript project with pnpm and antfu's ESLint config?

Bootstrap a TypeScript project by selecting pnpm with @antfu/ni, enabling strict mode and ESM output, and applying eslint-config without Prettier to initialize consistent linting rules.

What is the best way to configure ESLint without Prettier for a monorepo?

Configure ESLint without Prettier by applying Anthony Fu's opinionated eslint-config, using pnpm workspaces and strict TypeScript ESM settings to standardize monorepo linting conventions.

Does antfu's tooling setup work with Vitest and simple-git-hooks?

Yes, the tooling setup integrates Vitest for testing and simple-git-hooks with lint-staged for Git hooks, providing automated formatting and test validation during project commits.

Can I use @antfu/ni to manage pnpm scripts in a TypeScript library?

You can use @antfu/ni to manage pnpm scripts in a TypeScript library by running commands across strict ESM modules, streamlining package development and publishing workflows.

Why configure TypeScript in strict ESM mode for new JavaScript projects?

Configure TypeScript in strict ESM mode to enforce type safety and modern module output, ensuring new JavaScript projects follow Anthony Fu's conventions for robust library publishing.