Skip to content

Commit

Permalink
Lagt inn husky
Browse files Browse the repository at this point in the history
  • Loading branch information
beeccy committed Dec 18, 2023
1 parent 6f93f34 commit 1416804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/frontend/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-stagednpm test
5 changes: 4 additions & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"formik": "^2.4.5",
"graphql": "^16.8.1",
"history": "5.3.0",
"husky-init": "^8.0.0",
"json-diff-kit": "^1.0.18",
"lodash": "^4.17.21",
"markdown-draft-js": "^2.4.0",
Expand Down Expand Up @@ -58,7 +59,8 @@
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write \"./src\"",
"prettier": "prettier --write \"./src\""
"prettier": "prettier --write \"./src\"",
"prepare": "husky install"
},
"eslintConfig": {
"extends": "react-app",
Expand Down Expand Up @@ -107,6 +109,7 @@
"@types/yup": "^0.32.0",
"autoprefixer": "^10.4.16",
"http-proxy-middleware": "^2.0.6",
"husky": "^8.0.0",
"postcss": "^8.4.30",
"prettier": "3.1.1",
"react-helmet": "^6.1.0",
Expand Down

0 comments on commit 1416804

Please sign in to comment.