What problem does it solve?
This Skill unit provides a structured approach to setting up JavaScript/TypeScript projects, offering best practices and opinionated tooling configurations by Anthony Fu, aimed at enhancing code quality and development efficiency.
Core Features & Use Cases
- Project Setup: Facilitates the setup of new projects with predefined configurations for ESLint, Prettier, monorepos, and library publishing.
- Code Organization: Guidelines for coding practices, including code structure, runtime environments, and TypeScript conventions.
- Tooling Choices: Recommendations for @antfu/ni commands, TypeScript config, ESLint setup, Git hooks, and pnpm catalogs.
- Framework Support: Detailed configurations for Vue, React, Next.js, Svelte, Astro, and Solid frameworks.
- Testing: Instructions for testing and linting using Vitest and ESLint.
- Library Development: Guidelines for building and publishing TypeScript libraries with tsdown.
- Monorepo: Best practices for managing monorepos with pnpm workspaces and Turborepo.
- References: Comprehensive references for various topics such as ESLint config, project setup, and app development.
Quick Start
Run the ni command to install dependencies and initialize a new project with Anthony Fu's recommendations.