Skip to content

Commit

Permalink
chore: changed git hooks use
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorHo committed Jan 27, 2024
1 parent a5187cd commit 9c26a0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit → .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env sh

npm run lint:fix
git add .
18 changes: 1 addition & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"lint:check": "eslint ./src/**/*.js",
"lint:fix": "eslint ./src/**/*.js --fix",
"prepare": "husky",
"prepare": "git config --local core.hooksPath .hooks/",
"release": "commit-and-tag-version",
"pre-release": "commit-and-tag-version --prerelease beta"
},
Expand Down Expand Up @@ -45,8 +45,7 @@
},
"devDependencies": {
"commit-and-tag-version": "^12.1.0",
"eslint": "^8.56.0",
"husky": "^9.0.6"
"eslint": "^8.56.0"
},
"commit-and-tag-version": {
"types": [
Expand Down

0 comments on commit 9c26a0f

Please sign in to comment.