Contributing to react-easy-infinite-scroll-hook
All work on this repository happens directly on GitHub. Contributors send pull requests which go through a review process.
Working on your first pull request? You can learn how from this free series: How to Contribute to an Open Source Project on GitHub.
- Fork the repo and create your branch from
main
(a guide on how to fork a repository). - Run
yarn
to install all required dependencies. - Now you are ready to make your changes!
- Check out this tutorial on how to test your changes locally.
Currently we use eslint
with prettier
for linting and formatting the code, and jest
for unit testing. They all run just before committing changes to git
, but you must use them locally when making changes.
yarn test
: Run all tests and validations.
When you're sending a pull request:
- Prefer small pull requests focused on one change.
- Verify that all tests and validations are passing.
- Follow the pull request template when opening a pull request.
We prefix our commit messages with one of the following to signify the kind of change:
- build: Changes that affect the build system or external dependencies.
- ci, chore: Changes to our CI configuration files and scripts.
- docs: Documentation only changes.
- feat: A new feature.
- fix: A bug fix.
- perf: A code change that improves performance.
- refactor: A code change that neither fixes a bug nor adds a feature.
- style: Changes that do not affect the meaning of the code.
- test: Adding missing tests or correcting existing tests.
You can report issues on our bug tracker. Please search for existing issues and follow the issue template when opening an issue.
By contributing to react-easy-infinite-scroll-hook, you agree that your contributions will be licensed under the MIT license.