style: add prettier

Summary:

Test Plan:
This commit is contained in:
2024-05-14 21:59:38 -04:00
parent f78ad2d2dd
commit 29345a7bd1
8 changed files with 34 additions and 18 deletions

View File

@@ -6,3 +6,10 @@ npm run dev
```
npm run deploy
```
pre-commit hook for Sapling (`.sl/config`):
```
[hooks]
precommit = echo $HG_PARENT1 && bun prettier $(sl show -T "{file_adds} {file_mods}\n\n" $HG_PARENT1 --stat | head -n 1) --write
```