Thank you for your interest in contributing to the Show Component! We welcome contributions from the community to help improve and evolve this React utility.
- Fork the repository on GitHub.
- Clone your fork locally.
- Ensure you have pnpm installed globally. If not, install it with
npm install -g pnpm
. - Run
pnpm install
to install dependencies. - Create a branch for your contribution.
- Make your changes in your feature branch.
- Add or update tests as necessary.
- Ensure all tests pass by running
pnpm test
. - Update documentation in README.md if you've changed functionality.
- Run
pnpm run lint
to check for any linting issues.
- Ensure your code adheres to the existing style. We use Prettier for formatting.
- Update the README.md with details of changes to the interface, if applicable.
- Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. We use SemVer for versioning.
- Your Pull Request will be reviewed by maintainers. Be open to feedback and be prepared to make changes if requested.
If you find a bug or have a suggestion for improvement:
- Check if the issue already exists in the GitHub issues.
- If not, create a new issue, providing as much relevant information as possible.
- Follow React best practices and hooks rules.
- Write clear, readable, and maintainable code.
- Comment your code where necessary, especially for complex logic.
- Write meaningful commit messages.
- Add unit tests for any new functionality.
- Ensure all existing tests pass before submitting a Pull Request.
- Update the README.md if you're adding or changing functionality.
- Include JSDoc comments for all functions and components.
We use pnpm for package management. Please make sure to use pnpm commands instead of npm or yarn.
- To add a new dependency:
pnpm add <package-name>
- To add a dev dependency:
pnpm add -D <package-name>
- To install all dependencies:
pnpm install
- To run scripts defined in package.json:
pnpm run <script-name>
Thank you for contributing to react-smart-conditional