diff options
| author | Fuwn <[email protected]> | 2021-05-19 21:37:46 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-19 21:37:46 -0700 |
| commit | 38810f8f67e2edb8b2bbd76c89351d16c802a48b (patch) | |
| tree | 81981d95bc10f498032cba2902259579988fab1c /.husky | |
| parent | Merge pull request #3 from fuwn/dependabot/npm_and_yarn/lodash-4.17.21 (diff) | |
| download | me-38810f8f67e2edb8b2bbd76c89351d16c802a48b.tar.xz me-38810f8f67e2edb8b2bbd76c89351d16c802a48b.zip | |
ci: add the usuall stuff
Diffstat (limited to '.husky')
| -rw-r--r-- | .husky/.gitignore | 1 | ||||
| -rw-r--r-- | .husky/commit-msg | 4 | ||||
| -rw-r--r-- | .husky/pre-commit | 4 | ||||
| -rw-r--r-- | .husky/prepare-commit-msg | 4 |
4 files changed, 13 insertions, 0 deletions
diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..0bd658f --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..9dcd433 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +yarn lint diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg new file mode 100644 index 0000000..e30b381 --- /dev/null +++ b/.husky/prepare-commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +# exec < /dev/tty && node_modules/.bin/cz --hook || true |