add Prettier pre-commit hook instructions to README
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user