Skip to content
/ template-react Public template

A React Template with Jest, Tailwind and Husky

Notifications You must be signed in to change notification settings

sobitd/template-react

Repository files navigation

React + TypeScript + Vite + Jest + Tailwind + Husky + pnpm

This template provides a minimal setup to get a modern development environment with:

  • React 19 with Vite for fast development
  • TypeScript for type safety
  • Jest and React Testing Library for testing
  • Tailwind CSS for styling
  • ESLint & Prettier for linting and formatting
  • Husky & lint-staged for Git hooks enforcement
  • pnpm as the package manager for efficient dependency handling

🚀 Getting Started

1️⃣ Install dependencies

pnpm install

2️⃣ Start development server

pnpm dev

3️⃣ Run tests

pnpm test

4️⃣ Build for production

pnpm build

🔍 Linting & Formatting

Run ESLint and Prettier:

pnpm lint

Format code:

pnpm format

🛠️ Pre-commit Hooks

Husky and lint-staged are set up to run checks before committing.

pnpm prepare # Ensure Husky is set up

📝 License

MIT

About

A React Template with Jest, Tailwind and Husky

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published