This repository serves as a template for a React project using Vite, Vitest, MSW, ESLint, and Prettier.
- Vite: A next-generation frontend tooling. It's fast and lean, delivering an unmatched developer experience.
- React: A JavaScript library for building user interfaces.
- Vitest: A unit testing framework designed for Vite. It provides a simple and fast testing experience.
- MSW: Mock Service Worker (MSW) is an API mocking library that uses Service Workers to intercept actual requests. Ideal for front-end development and testing.
- ESLint: A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.
- Prettier: An opinionated code formatter that ensures that all outputted code conforms to a consistent style.
- Clone this repository
- Install dependencies with
pnpm install
- Start the development server with
pnpm run dev
Run pnpm run test
to execute the unit tests via Vitest.
MSW is set up and ready to use in the src/mocks
directory. Add your handlers there.
ESLint and Prettier are configured for this project. Run npm run lint
to check the code for any linting errors.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
MIT