diff options
author | marv <rotrobmin@gmail.com> | 2024-02-02 20:44:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 04:44:14 +0000 |
commit | 97c5c741137ecc363630c58797901f1eb829c1bb (patch) | |
tree | 050bd42fc633d728d1687d51db93714efabbfe81 /.husky | |
parent | e598a97f27747bef0f850dcce2ad7bdeab89e0cd (diff) |
Add Prettier Formatting for Markdown Files and Pre-Commit Hook (#543)
* Install prettier, add prettierignore
* Add precommit hook for md
* Prettier format md files
Diffstat (limited to '.husky')
-rw-r--r-- | .husky/.gitignore | 1 | ||||
-rw-r--r-- | .husky/pre-commit | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 00000000..31354ec1 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..36af2198 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged |