From d2a5e563e43d77c663f83cc2047e33f3339f0e7c Mon Sep 17 00:00:00 2001 From: Mariana Sartorato Date: Tue, 23 May 2023 10:12:55 -0300 Subject: [PATCH] chore(githubActions): add .husky with gh actions - add pre-push hook - add pre-commit hook - add commit message hook (#1) --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 4 ++++ .husky/pre-push | 4 ++++ 3 files changed, 12 insertions(+) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit create mode 100755 .husky/pre-push diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 00000000..4c49ae6a --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn commitlint --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..8a194156 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn lint-staged -c scripts/lint-staged-config.mjs diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 00000000..932712bf --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn pre-push