As the creators and maintainers of this project, we want to ensure that resolvers
lives and continues to grow and evolve. We would like to encourage everyone to help and support this library by contributing.
Here is a quick guide to doing code contributions to the library.
-
Fork and clone the repo to your local machine
git clone https://github.com/YOUR_GITHUB_USERNAME/resolvers.git
-
Create a new branch from
master
with a meaningful name for a new feature or an issue you want to work on:git checkout -b your-meaningful-branch-name
-
Install packages by running:
bun install
-
If you've added a code that should be tested, ensure the test suite still passes.
bun test
-
Try to write some unit tests to cover as much of your code as possible.
-
Ensure your code lints without errors.
bun lint
-
Ensure build passes.
bun run build
-
Push your branch:
git push -u origin your-meaningful-branch-name
-
Submit a pull request to the upstream resolvers repository.
-
Choose a descriptive title and describe your changes briefly.
Please follow the coding style of the project. React Hook Form uses eslint and prettier. If possible, enable their respective plugins in your editor to get real-time feedback. The linting can be run manually with the following command: bun lint
By contributing your code to the resolvers GitHub repository, you agree to license your contribution under the MIT license.
Thank you to all the people who have already contributed to React Hook Form!