This project is a boilerplate for building React applications using Vite and TypeScript. It includes configurations for ESLint, Prettier, StyleLint, and Husky for pre-commit hooks.
- React 18
- Vite as the build tool
- TypeScript for type safety
- ESLint for linting
- Prettier for code formatting
- StyleLint for CSS linting
- Tailwind CSS for styling
- Husky for pre-commit hooks
Make sure you have the following installed:
- Node.js (version 14 or higher)
- npm (comes with Node.js)
-
Clone the repository:
git clone https://github.com/yourusername/react-vite-ts-boilerplate.git
-
Navigate to the project directory:
cd react-vite-ts-boilerplate -
Install the dependencies:
npm install
To start the development server, run:
npm run devOpen your browser and navigate to http://localhost:3000 to see your application in action.
This project uses ESLint and Prettier for linting and formatting. You can run the following commands to lint and format your code:
- Lint:
npm run lint - Format:
npm run format
Husky is configured to run ESLint and Prettier before each commit. This ensures that your code is always linted and formatted correctly.
To build the application for production, run:
npm run buildThis will create an optimized build in the dist directory.
This project is licensed under the MIT License. See the LICENSE file for more details.