eslint-plugin-relay
is one of Facebook's open source projects that is both under very active development and is also being used to ship code to everybody on facebook.com. We're still working out the kinks to make contributing to this project as easy and transparent as possible, but we're not quite there yet. Hopefully this document makes the process for contributing clear and answers some questions that you may have.
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Unlike Relay, this project is developed directly and exclusively on GitHub. We intend to release updates quickly after changes are merged.
Before submitting a pull request, please make sure the following is done…
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add tests.
- Ensure the test suite passes (
yarn test
ornpm test
). - Auto-format the code by running
yarn run prettier
ornpm run prettier
. - If you haven't already, complete the CLA.
-
Every change that gets pushed to the
main
branch will be published as0.0.0-main-SHA
. -
For stable releases, the release author is expected to update the version in
package.json
, commit that, and create an accompanying tag. Once this is pushed a package will be published following that version. The workflow would look something like this:$ yarn version --minor $ git push --follow-tags
In order to accept your pull request, we need you to submit a CLA. You only need to do this once, so if you've done this for another Facebook open source project, you're good to go. If you are submitting a pull request for the first time, just let us know that you have completed the CLA and we can cross-check with your GitHub username.
We will be using GitHub Issues bugs and feature requests. Before filing a new issue, make sure an issue for your problem doesn't already exist.
By contributing to eslint-plugin-relay
, you agree that your contributions will be licensed under its MIT license.