First off, thanks for taking the time to contribute! This guide will answer some common questions about how this project works.
While this is a Pinterest open source project, we welcome contributions from everyone. Regular outside contributors can become project maintainers.
If you're having trouble using this project, please start by reading the README.md
and searching for solutions in the existing open and closed issues.
Please be sure to read and understand our CODE_OF_CONDUCT.md
.
We work hard to ensure that our projects are welcoming and inclusive to as many
people as possible.
If you have a bug report, please provide as much information as possible so that we can help you out:
- Version of the project you're using.
- Code which reproduces the issue.
- Steps which reproduce the issue.
- Stack traces for crashes.
- Any logs produced.
- Fork this repository to your own account.
- Make changes or add a new rule in the
src/rules
directory. - Run
npm run typecheck
to type-check your code. - Run
npm run build
ornpm run watch
to compile your code into standalone rules. - Add the new or modified rules to your config and test them with a sample schema.
- Commit your work and push to a new branch on your fork.
- Submit a pull request.
- Participate in the code review process by responding to feedback.
Once there is agreement that the code is in good shape, one of the project's maintainers will merge your contribution.
To increase the chances that your pull request will be accepted:
- Follow the coding style
- Write tests for your changes
- Write a good commit message. Commit messages must follow the Conventional Commits specification.
By contributing to this project, you agree that your contributions will be licensed under its license.