This template provides a minimal setup to get React working in Vite with HMR (Hot Module Replacement) and includes preconfigured ESLint rules, Husky, Commitlint, and Prettier for a streamlined development experience.
- React: A JavaScript library for building user interfaces.
- TypeScript: A strongly typed programming language that builds on JavaScript.
- Vite: A fast build tool and development server.
- ESLint: A tool for identifying and fixing linting issues in your code.
- Husky: Git hooks made easy, enabling pre-commit hooks.
- Commitlint: Helps ensure that your commit messages follow a consistent format.
- Prettier: An opinionated code formatter.
npm install
Start the development server:
npm run dev
Build the project for production:
npm run build
Lint the project with ESLint:
npm run lint
Format the project with Prettier:
npm run format
The project comes with a pre-configured ESLint setup. If you are developing a production application.
Husky is set up to run pre-commit hooks, ensuring that your code meets the defined standards before each commit.
Commitlint is configured to enforce a consistent commit message format.
Prettier is set up to automatically format your code, ensuring a consistent code style across the project.