Skip to content

Commit 360872e

Browse files
author
Larry Botha
committed
chore(husky): update to husky 7 configs
1 parent b1db276 commit 360872e

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

.husky/commit-msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
commitlint \
5+
--help-url="https://github.com/tjinauyeung/svelte-forms-lib/#commit-message-conventions" \
6+
--edit "$1"

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

husky.config.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"start": "rollup -c -w rollup.config.js",
88
"build": "cross-env NODE_ENV=production && rollup -c rollup.config.js",
9-
"prepare": "npm run build",
9+
"prepare": "npm run build && husky install",
1010
"test": "jest && npm run svelte-check",
1111
"test:watch": "concurrently \"jest --watchAll\" npm:svelte-check:watch",
1212
"svelte-check:watch": "svelte-check --watch --output=human-verbose",
@@ -59,7 +59,7 @@
5959
"eslint": "^7.31.0",
6060
"eslint-config-prettier": "^8.3.0",
6161
"eslint-plugin-unicorn": "^34.0.1",
62-
"husky": "7.0.1",
62+
"husky": "^7.0.0",
6363
"jest": "^26.6.3",
6464
"jest-runner-eslint": "^0.10.1",
6565
"jest-watch-select-projects": "^2.0.0",

0 commit comments

Comments
 (0)