Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.75 KB

CONTRIBUTING.md

File metadata and controls

38 lines (29 loc) · 1.75 KB

Contributing

A big welcome and thank you for considering contributing to the open source projects! It’s people like you that make it a reality for users in our community.

Code of Conduct

We take our open source community seriously and hold ourselves and other contributors to high standards of communication. By participating and contributing to this project, you agree to uphold our Code of Conduct.

Getting Started

  1. Make sure what you want to do complies with the [Design Principles] below.
  2. If there are major changes or special suggestions, please first discuss the change you wish to make via issue.
  3. Follow "Fork and Pull Request Workflow" throughout.
  4. Add your code snippets, please pay attention to adding them to different files according to the type. If the type file does not exist, create it and add its name to package.json.
  5. Maybe you should test the code snippets to make sure they work as you expect.
  6. Create your pull request.

Design Principles

  • No unnecessary placeholders.
    • ❌ if (condition) else { code }
    • ✅ if () else {}
  • Follow the regular code input sequence.
    • ❌ function-public
    • ✅ public-function
  • Avoid short shortcuts that require special memorization.
    • ❌ wl
    • ✅ while-block

Fork and Pull Request Workflow

  1. Fork the repository to your own Github account
  2. Clone the project to your machine
  3. Create a branch locally with a succinct but descriptive name
  4. Commit changes to the branch
  5. Following any formatting and testing guidelines specific to this repo
  6. Push changes to your fork
  7. Open a PR in our repository and follow the PR template so that we can efficiently review the changes.