Skip to content

Commit

Permalink
Oppgrader Husky, fjern foreldet kommando
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Feb 17, 2023
1 parent 81093c2 commit b537499
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion 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 @@ -78,7 +78,7 @@
"ajv": "^8.12.0",
"autoprefixer": "^10.4.13",
"concurrently": "^7.0.0",
"husky": "^8.0.2",
"husky": "^8.0.0",
"less-plugin-npm-import": "^2.1.0",
"less-watch-compiler": "^1.16.3",
"lint-staged": "^13.0.4",
Expand All @@ -102,8 +102,7 @@
"dev": "concurrently --kill-others \"npm run start\" \"npm run start:css\"",
"prepare": "husky install",
"fetch-api": "curl -o ./soknad-api.json http://localhost:8181/sosialhjelp/soknad-api/v3/api-docs && prettier --write soknad-api.json",
"orval": "rm -rf ./src/generated & orval --prettier",
"fetch-locale": "curl 'http://localhost:8181/sosialhjelp/soknad-api/informasjon/tekster?sprak=nb_NO&type=soknad' | sed -e 's/\\<\\/a\\>/\\<\\/lenke\\>/g' | sed -e 's/\\<a\\>/\\<lenke\\>/g' | sed -e 's/{\\([^\\[ }\\]*\\)}/{{\\1}}/g' | jq --indent 4 -S > public/locales/nb/skjema.json"
"orval": "rm -rf ./src/generated & orval --prettier"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit b537499

Please sign in to comment.