Skip to content

Commit

Permalink
fix(husky,package): 🐛 commit-msg,lint-staged
Browse files Browse the repository at this point in the history
- commit-msg 去除sh脚本

- lint-staged 文件目录多余字符导致无法匹配文件问题
  • Loading branch information
jsxiaosi committed Jul 18, 2024
1 parent 58d0edf commit d8ef4e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"bin-wrapper": "npm:bin-wrapper-china"
},
"lint-staged": {
"˜{src,mock,build}/**/*.{ts,js,tsx,jsx}": [
"{src,mock,build}/**/*.{ts,js,tsx,jsx}": [
"eslint --fix",
"prettier --write"
],
Expand Down

0 comments on commit d8ef4e5

Please sign in to comment.