chore(husky): update husky config

This commit is contained in:
Cameron Clark 2021-02-09 00:40:14 +00:00
parent b07dfeeccb
commit 4fdfa22704
4 changed files with 11 additions and 7 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/commit-msg Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"
yarn commitlint --edit

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
lint-staged

View File

@ -14,18 +14,13 @@
"lint:js": "eslint --ext .ts,.js,.vue .",
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
"lint": "yarn lint:js && yarn lint:style",
"test": "jest"
"test": "jest",
"postinstall": "husky install"
},
"lint-staged": {
"*.{ts,js,vue}": "eslint",
"*.{css,vue}": "stylelint"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"dependencies": {
"@fontsource/noto-sans": "^4.2.0",
"@fontsource/noto-sans-hk": "^4.2.0",