mirror of
https://github.com/lencx/ChatGPT.git
synced 2024-10-01 01:06:13 -04:00
chore: husky
This commit is contained in:
parent
d84c11319d
commit
6a7eabf5cb
6
.husky/pre-commit
Executable file
6
.husky/pre-commit
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npm run pretty-quick
|
||||
cargo fmt
|
||||
git add .
|
10
package.json
10
package.json
@ -15,8 +15,9 @@
|
||||
"fmt:rs": "cargo fmt",
|
||||
"tr": "tr",
|
||||
"tauri": "tauri",
|
||||
"prettier": "prettier -c --write '**/*'",
|
||||
"pretty-quick": "pretty-quick"
|
||||
"prettier": "prettier -c --write '**/*.{js,md,ts,tsx,yml}'",
|
||||
"pretty-quick": "pretty-quick --staged",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"license": "MIT",
|
||||
"author": "lencx <cxin1314@gmail.com>",
|
||||
@ -35,11 +36,6 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/lencx/ChatGPT"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "pretty-quick --staged"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^4.8.0",
|
||||
"@monaco-editor/react": "^4.4.6",
|
||||
|
Loading…
Reference in New Issue
Block a user