update: look at todo
parent
cd84a1aab0
commit
f2a22fa22f
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
. "$(dirname "$0")/common.sh"
|
||||||
|
|
||||||
|
yarn commitlint --edit $1
|
|
@ -0,0 +1,8 @@
|
||||||
|
command_exists () {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Workaround for Windows 10, Git Bash and Yarn
|
||||||
|
if command_exists winpty && test -t 1; then
|
||||||
|
exec < /dev/tty
|
||||||
|
fi
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
. "$(dirname "$0")/common.sh"
|
||||||
|
|
||||||
|
yarn lint-staged
|
|
@ -12,7 +12,7 @@
|
||||||
"lint:prettier": "prettier --check .",
|
"lint:prettier": "prettier --check .",
|
||||||
"lint": "yarn lint:js && yarn lint:style && yarn lint:prettier",
|
"lint": "yarn lint:js && yarn lint:style && yarn lint:prettier",
|
||||||
"lintfix": "prettier --write --list-different . && yarn lint:js --fix && yarn lint:style --fix",
|
"lintfix": "prettier --write --list-different . && yarn lint:js --fix && yarn lint:style --fix",
|
||||||
"prepare": "",
|
"prepare": "husky install",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
|
Loading…
Reference in New Issue