👍🎉 First off, thanks for taking the time to contribute! 🎉👍
The following is a set of guidelines for contributing to Rocket.Chat and its packages, which are hosted in the Rocket.Chat Organization on GitHub.
Note: If there's a feature you'd like, there's a bug you'd like to fix, or you'd just like to get involved please raise an issue and start a conversation. We'll help as much as we can so you can get contributing - although we may not always get back right away :)
Most of the coding standards are covered by .editorconfig.
Things not covered by jshint:
- Unless required no semicolons they are not required
- Short one-line
ifstatements do not require nipple brackets (provided functionality is clear) - Multiple conditionals within an
ifstatement should be surrounded by brackets exports/module.exportsshould be at the end of the file- Longer, descriptive variable names are preferred, e.g.
errorvserr
We acknowledge all the code does not meet these standards but we are working to change this over time.