First of all, thank you for taking the time to contribute!
The following is a set of guidelines for contributing to SikhiToTheMax and its packages, which are hosted in the Khalis Foundation organization on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
- Always write code using functional components (hooks based) following latest react standards.
- Refactor existing class-based components to hooks based functional components in typescript.
All the environment variables are documented in the .env.default file. Ask for their values to gurjit, amansingh.
- We are currently following conventional commit style
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- When only changing documentation, include
[ci skip]
in the commit description
All JavaScript must adhere to our ESLint and Prettier rules. We recommend using VSCode with Prettier plugin installed to avoid linting errors. We anyway lint the code before pushing to repo.
All CSS must adhere to Stylelint Config Standard with properties listed in alphabetical order.
See .htmlhintrc for the HTMLHint rules.