Thank you for your interest in contributing to ReactComponents! This document provides guidelines and instructions for contributing.
-
Fork and clone the repository
git clone https://github.com/Adjanour/ReactComponents.git cd ReactComponents -
Install dependencies
npm install
-
Run tests
npm test -
Build the project
npm run build
-
Create a new branch
git checkout -b feature/your-feature-name
-
Make your changes
- Write clean, maintainable code
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
-
Run quality checks
npm run lint npm run typecheck npm test -
Commit your changes
- Use clear, descriptive commit messages
- Follow conventional commits format if possible
-
Submit a pull request
- Provide a clear description of the changes
- Reference any related issues
- Ensure all CI checks pass
- We use ESLint and Prettier for code formatting
- Run
npm run formatto auto-format your code - Run
npm run lint:fixto auto-fix linting issues - Follow TypeScript best practices
- Write meaningful variable and function names
- Write unit tests for all new features
- Ensure all tests pass before submitting PR
- Aim for high code coverage
- Use React Testing Library for component tests
- Update README.md if you change functionality
- Add JSDoc comments for public APIs
- Update CHANGELOG.md following Keep a Changelog format
- Provide usage examples for new features
Feel free to reach out to adjanour@icloud.com if you have any questions.
Be respectful and professional in all interactions. We're here to build great software together!