Skip to content

Commit

Permalink
chore(package): git commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed Sep 9, 2024
1 parent 83b4053 commit fe6c896
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/h"

npx lint-staged
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"checkI18n": "node ./scripts/checkUselessI18n.js",
"remove-orval-client": "node ./scripts/removeOrvalClient.js",
"orval:api": "source ./.env.development.local && yarn orval --input $HOST_URL\\api-docs/swagger.json",
"orval:local": "yarn orval --input ./swagger.json"
"orval:local": "yarn orval --input ./swagger.json",
"prepare": "husky"
},
"dependencies": {
"@element-plus/icons-vue": "^1.1.0",
Expand Down Expand Up @@ -81,8 +82,9 @@
}
},
"lint-staged": {
"*.{vue,js,scss}": [
"prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.vue\" \"src/**/*.scss\""
"*.{js,ts,vue,scss}": [
"eslint --fix",
"prettier --write"
]
}
}

0 comments on commit fe6c896

Please sign in to comment.