diff --git a/README.md b/README.md index b6f8699c..8fa30c4c 100644 --- a/README.md +++ b/README.md @@ -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 +```