diff --git a/.husky/pre-commit b/.husky/pre-commit index cf0c46b9..041c660c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no-install lint-staged diff --git a/package.json b/package.json index ddbeb4bc..923d6aef 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { @@ -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,