This project is a boilerplate setup for a React application with TypeScript. It includes configurations for Vite, ESLint, Prettier, and Tailwind CSS to streamline development and ensure code quality.
- TypeScript: Strongly-typed programming language for better development experience.
- Vite: Fast and modern build tool for development and production.
- ESLint & Prettier: Code linting and formatting to maintain code quality and consistency.
- Tailwind CSS: Utility-first CSS framework for rapid UI development.
- Husky: Git hooks to enforce pre-commit checks.
- Clone the repository:
git clone https://github.com/Nikhilpallavurk/react_setup.git
- Navigate to the project directory:
cd react_setup
- Install dependencies using
pnpm
:pnpm install
pnpm dev
: Starts the development server with Vite.pnpm build
: Builds the project for production using TypeScript and Vite.pnpm lint
: Runs ESLint to check for code quality issues. Only warns on issues with--max-warnings 0
.pnpm preview
: Previews the built project locally.pnpm prepare
: Runs Husky to set up Git hooks.pnpm format
: Formats code using Prettier.
- React:
^18.3.1
- JavaScript library for building user interfaces. - Axios:
^1.7.2
- Promise-based HTTP client for making API requests. - CryptoJS:
^4.2.0
- Library for cryptographic operations. - React Router DOM:
^6.24.0
- Declarative routing for React.
- TypeScript:
^5.5.3
- TypeScript language support. - Vite:
^5.3.1
- Build tool and development server. - ESLint:
^8.57.0
- Linting for JavaScript and TypeScript. - Prettier:
^3.3.2
- Code formatting tool. - Tailwind CSS:
^3.4.4
- Utility-first CSS framework. - Husky:
^9.0.11
- Git hooks for running scripts before commits.
Configured with:
- @typescript-eslint/eslint-plugin: Linting rules for TypeScript.
- eslint-plugin-react-hooks: Linting rules for React Hooks.
- eslint-plugin-prettier: Integrates Prettier with ESLint.
Configured to format TypeScript files and integrate with Tailwind CSS.
Integrated into the project for utility-first styling.
- Fork the repository.
- Create a feature branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -am 'Add new feature'
- Push to the branch:
git push origin feature/your-feature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Vite - Fast and modern build tool.
- Tailwind CSS - Utility-first CSS framework.
- Prettier - Code formatter.
- ESLint - Linting tool for JavaScript and TypeScript.