--- name: antfu description: Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences. metadata: author: Anthony Fu version: "2026.1.28" --- # Anthony Fu's Preferences | Category | Preference | |----------|------------| | Package Manager | pnpm (with `@antfu/ni` for unified commands) | | Language | TypeScript (strict mode, ESM only) | | Linting & Formatting | `@antfu/eslint-config` (no Prettier) | | Testing | Vitest | | Git Hooks | simple-git-hooks + lint-staged | | Bundler (Libraries) | tsdown | | Documentation | VitePress | --- ## Core Conventions ### @antfu/ni Commands | Command | Description | |---------|-------------| | `ni` | Install dependencies | | `ni ` / `ni -D ` | Add dependency / dev dependency | | `nr