Skip to content

Commit abaa08d

Browse files
committed
test: lint
1 parent 424f294 commit abaa08d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit

.husky/pre-commit

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
yarn format && yarn lint
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn lint && yarn format

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"format": "prettier --write .",
4040
"lint": "eslint . --fix",
4141
"lint:all": "eslint .",
42+
"prepare": "husky install",
4243
"create-color-font": "node scripts/create-color-font.js"
4344
},
4445
"license": "ISC",

0 commit comments

Comments
 (0)