chore: husky

This commit is contained in:
lencx
2023-01-22 20:16:14 +08:00
parent d84c11319d
commit 6a7eabf5cb
2 changed files with 9 additions and 7 deletions

View File

@@ -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",