add Prettier pre-commit hook instructions to README
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev Build started...

This commit is contained in:
Steven Tischer
2026-06-09 17:36:45 +02:00
parent 72dc3bd852
commit 9479192f01
+15
View File
@@ -160,3 +160,18 @@ Defined in `service/src/data/users.json`:
| ---------- | ---------- | ----------- |
| superadmin | superadmin | SUPER_ADMIN |
| user | user | UNI_ADMIN |
## Prettier pre-commit hook
- Install Prettier
```bash
npm install
```
- To enable automatic code formatting with Prettier on commit, copy the pre-commit hook script to the Git hooks directory and make it executable:
```shell
cp .githooks/pre-commit .git/hooks/pre-commit
(base) stischer@Stevens-MacBook-Pro smartguide % chmod +x .git/hooks/pre-commit
```