Skip to content

Commit

Permalink
Replace pre-commit dependency with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Nov 21, 2024
1 parent 2dddb47 commit 16a4de9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 204 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint-staged
216 changes: 17 additions & 199 deletions package-lock.json

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

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
"serve": "vite preview",
"lint": "eslint",
"fix": "eslint --fix",
"lint-staged": "lint-staged"
"lint-staged": "lint-staged",
"prepare": "husky || true"
},
"lint-staged": {
"**/*.{js,vue}": [
"eslint --fix"
]
},
"pre-commit": [
"lint-staged"
],
"dependencies": {
"axios": "^1.7.7",
"cocoda-sdk": "^3.4.12",
Expand All @@ -37,8 +35,8 @@
"dotenv": "^16.4.5",
"eslint": "~9.14",
"eslint-config-gbv": "~2.4",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"pre-commit": "^1.2.2",
"vite": "^5.4.11"
}
}

0 comments on commit 16a4de9

Please sign in to comment.