From 34225d7199ee79f252275722b98b988e984a0943 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sun, 26 Mar 2023 23:17:19 -0400 Subject: Setup Husky and lint-stage for commit fixing (#23308) --- .husky/pre-commit | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .husky/pre-commit (limited to '.husky/pre-commit') diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 000000000..36af21989 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged -- cgit From a766804e02dfe3d2c47267d14f1797eca93c837b Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Tue, 28 Mar 2023 00:28:57 -0400 Subject: Use Yarn instead of NPX for pre-commit hook (#24287) --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.husky/pre-commit') diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af21989..d2ae35e84 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged +yarn lint-staged -- cgit