var img = document.createElement('img'); img.src = "https://webstats.uzh.ch/matomo.php?idsite=356&rec=1&url=https://www.klicker.uzh.ch" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s); Contributing Guidelines | KlickerUZH
Skip to main content

Contributing Guidelines

When contributing to any KlickerUZH service or project, please ensure that you follow our guidelines. These have mainly been set to ensure consistency within our projects and should not be a cause of inconvenience.

Before considering any contribution, we recommend that you create a discussion (https://github.com/uzh-bf/klicker-uzh/discussions) to discuss your proposed addition with the project contributors. If you have any questions, please feel free to reach out.

Code Style

The code style of KlickerUZH is checked using ESLint (https://eslint.org/). The linter can be manually executed with npm run lint; it will automatically run on pre-commit.

Formatting

All KlickerUZH code is to be formatted with Prettier (https://prettier.io/) to ensure a consistent code formatting across all projects. To simplify this process, we have added the npm run format command as well as a git hook that will format your code automatically on pre-commit. Please note that our CI will check the formatting and throw if erroneous formatting is encountered.

Copyright 2023 @ Teaching Center, Department of Banking and Finance, University of Zurich. All rights reserved. Products and Services displayed herein are trademarks or registered trademarks of their respective owners.