diff options
| author | Ahmed Tarek <ahmed.tokyo1@gmail.com> | 2021-07-29 20:06:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-29 11:06:12 -0700 |
| commit | 0bac86b0a7cca056da83065e7fb2982b35b1cb02 (patch) | |
| tree | 62c3f0a7782abb45f1204a02e0033696a29cbf31 /.husky | |
| parent | 28b39bd026d1c13150856d84170fe6127288e104 (diff) | |
🔨 add husky precommit to auto run prettier (#128)
* :sparkles: add husky precommit to auto run prettier
* yarn
Diffstat (limited to '.husky')
| -rwxr-xr-x | .husky/pre-commit | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..a03ddbc --- /dev/null +++ b/.husky/pre-commit | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | . "$(dirname "$0")/_/husky.sh" | ||
| 3 | |||
| 4 | # Format using prettier | ||
| 5 | make fmt.write | ||
