From c32940d5d43b4a944cb6c01bbbc1109d4d157b57 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Thu, 29 Jul 2021 14:06:29 +0200 Subject: [PATCH] chore: add husky hooks Refs #2722 --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 00000000000..378f80f9922 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx commitlint -e diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000000..36af219892f --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged