Hey there, potential contributor! Thanks for being interested in our repo. We set up some rules for coding & committing below.
Also, as a general rule, if you’d like to contribute, it never hurts to contact us or create an issue for what you want to fix first.
Obviously, we’d like to keep everything organized and clean. Here’s what we agreed to for this codebase.
We...
- use Prettier & configure it to use our .prettierrc file.
- prefer readability over brevity
- LongButClearFunctionNames(OrVariableNames) are better than shrtFns(orVrbls) tbh iykwim
- a few more lines of code are often better than "elegantly" nesting and chaining as if your life depended on it
- a simple, blank line does wonders for readability
- use PascalCase for component names & camelCase for both variable and function names
- give each component its own folder & put related CSS in a respective file of the same name
- prefer functional React components over class-based ones – but class components aren’t evil, use them if they make your life easier
- place media files and other assets into public/assets so there’s no need to manually import them into components before using them
- discuss build changes and new libraries before adding them to our local branches
- have fun :)
- use
git rebase
instead ofmerge
if you want to incorporate new changes inmain
into your branch. PRs are merged via merge commits though. - prefix branch names like this:
- feat/
- fix/
- style/
- build/
- docs/
- refactor/
- and also write these abbrevations into commit messages on those branches
- adhere to the ConventionalCommit guidelines.
- proper commit style will be enforced via commitlint. Rule reference can be found here.
- adhere to Semantic Versioning