summaryrefslogtreecommitdiff
path: root/.husky
diff options
context:
space:
mode:
authormarv <rotrobmin@gmail.com>2024-02-02 20:44:14 -0800
committerGitHub <noreply@github.com>2024-02-03 04:44:14 +0000
commit97c5c741137ecc363630c58797901f1eb829c1bb (patch)
tree050bd42fc633d728d1687d51db93714efabbfe81 /.husky
parente598a97f27747bef0f850dcce2ad7bdeab89e0cd (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/.gitignore1
-rw-r--r--.husky/pre-commit4
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