Add eslint and prettier pre-commit hooks
Description
Add eslint and prettier pre-commit hooks
Further details
Use lab-allocator as an example (https://gitlab.developers.cam.ac.uk/uis/devops/laboratory-allocator/lab-allocator/-/blob/main/.pre-commit-config.yaml?ref_type=heads#L47)
Task list
- Add hooks to
.pre-commit-config.yaml
- Run pre-commit as a CI job
Acceptance criteria
-
pre-commit to run eslint and prettier -
pre-commit is running as a CI job
Links/references
Edited by Sebastiaan ten Pas