Skip to content

Commit

Permalink
chore: update prettier and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jun 22, 2024
1 parent 5a0c6d3 commit a253c89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"test-unit": "jest",
"run-prettier": "prettier . .eslintrc",
"check-prettier": "npm run run-prettier -- --check",
"compile-typescript": "tsc --project ."
"compile-typescript": "tsc --project .",
"prepare": "husky"
},
"repository": {
"type": "git",
Expand All @@ -41,11 +42,11 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^5.0.1",
"express": "^4.13.3",
"husky": "^8.0.3",
"husky": "^9.0.0",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"nock": "^13.0.5",
"prettier": "3.1.1",
"prettier": "3.3.2",
"typescript": "^5.0.4"
},
"dependencies": {
Expand All @@ -58,9 +59,9 @@
"testRegex": ".*Test\\.js$"
},
"lint-staged": {
"*.js": "eslint --fix",
"*.{ts,md,json,yml}": "prettier --write",
".{eslintrc,travis.yml}": "prettier --write"
"*.{js,ts}": "eslint --fix",
"*.{md,json,yml}": "prettier --write",
".travis.yml": "prettier --write"
},
"prettier": {
"singleQuote": true,
Expand Down

0 comments on commit a253c89

Please sign in to comment.