Thank you for your interest in contributing to React Dev Panel! This guide will help you get started.
- Fork and clone the repository
- Install dependencies:
npm install - Start development:
npm run storybook - Make your changes with proper tests
- Add a changeset:
npm run changeset - Commit using conventional format:
npm run commit - Submit a pull request
This project maintains high code quality through automated tooling:
All code is automatically checked via pre-commit hooks:
- ESLint - TypeScript/React linting
- Prettier - Code formatting
- Stylelint - CSS/SCSS linting
- Commitlint - Conventional commit validation
npm run lint:fix # Fix linting issues
npm run format:fix # Fix formatting issues
npm run stylelint:fix # Fix style issues
npm run commit # Interactive conventional commitThis repo uses changesets to make releasing updates easier.
When you've got your changes ready, run:
npm run changesetThis will prompt you to:
- Select the type of change (patch, minor, major)
- Write a summary of your changes
- patch: Bug fixes, documentation updates, minor improvements
- minor: New features, new control types, API enhancements
- major: Breaking changes, major refactors
For more details, see the changesets documentation.
Use conventional commit format (automatically enforced):
type(scope): description
Examples:
feat(core): add new MultiSelect control
fix(ui): resolve panel positioning issue
docs(readme): update installation guide
- All code style is automatically enforced via pre-commit hooks
- TypeScript is required for all new code
- Follow existing patterns and naming conventions
- Use CSS Modules for component styles
- Add tests for new functionality
- Ensure existing tests pass:
npm run test - Update Storybook stories for UI components
- Provide clear description of changes
- Include relevant tests and documentation updates
- Ensure all automated checks pass
- Reference any related issues
- Check existing issues
- Review the development guide
Thank you for contributing! 🎉