-
Notifications
You must be signed in to change notification settings - Fork 38
Contribution Guidelines
We want to make contributing to this project as simple and transparent as possible.
We use GitHub to host and maintain our codebase. We also use GitHub to track issues, feature requests and manage pull requests.
Your contributions are welcome!
- Fork the repo and create your branch from
master. You may want to disable GitHub actions for your fork. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Issue your pull request.
Once a pull request is issued, the code needs to pass the automatic tests and build setup with the CI/CD Pipeline. pull requests must be reviewed and approved by at least one other users before it can be merged. Any feedback or suggestions should be considered and/or added to the code, if they are relevant and appropriate. Once any requested changes are addressed and approved, the reviewer should be the one to merge the code into the master branch.
When you submit code changes, your contributions are to be under the same MIT License that covers the project. Please contact the course coordinator if you have any concerns.
Report bugs using Github's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Any other notes
Please use a consistent coding style.
- For this project, we are following the airbnb Javascript Style Guide for our coding style
To ensure that a coding standard is followed, a linter has been set up to check for coding style issues. This is used so that coding style is consistent across all parts of the project. The project is set up to NOT compile or build if the code does not adhere to the style standard that has been set by the linter.
- You can run
npm run lintto run the linter and show you any formatting error and quality issues in the code -
npm startandnpm run buildwill also check for the same thing, but will also attempt to build the project - Finally, you can run
npm run lint-fixto automatically fix any of the errors that the linter picks up*.
*Note: Some errors detected by the linter may not be automatically fixed and may require the developer to fix it manually
By contributing, you agree that your contributions will be licensed under its MIT License.
This document was adapted from the open-source contribution guidelines for Facebook's Draft