diff --git a/.husky/pre-commit b/.husky/pre-commit index 38e1924..d55d5e1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,10 +1,7 @@ -#!/usr/bin/env sh # This file is part of Share₂Fedi # https://github.com/kytta/share2fedi # # SPDX-FileCopyrightText: © 2023 Nikita Karamov # SPDX-License-Identifier: CC0-1.0 -. "$(dirname -- "$0")/_/husky.sh" - npx lint-staged diff --git a/package.json b/package.json index d9919e2..54ce8cc 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "fix:prettier": "prettier --write --ignore-unknown --plugin=prettier-plugin-astro", "fix:stylelint": "stylelint --fix", "test": "pnpm run check", - "prepare": "husky install" + "prepare": "husky" }, "browserslist": "cover 95%, last 2 versions, Firefox ESR, not dead", "dependencies": { @@ -50,7 +50,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-astro": "^0.31.4", "eslint-plugin-unicorn": "^51.0.1", - "husky": "^8.0.3", + "husky": "^9.0.10", "lint-staged": "^14.0.1", "prettier": "^3.2.5", "prettier-plugin-astro": "^0.13.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e3b4c2..a848bf7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,8 +56,8 @@ devDependencies: specifier: ^51.0.1 version: 51.0.1(eslint@8.56.0) husky: - specifier: ^8.0.3 - version: 8.0.3 + specifier: ^9.0.10 + version: 9.0.10 lint-staged: specifier: ^14.0.1 version: 14.0.1 @@ -3291,9 +3291,9 @@ packages: engines: {node: '>=16.17.0'} dev: false - /husky@8.0.3: - resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} - engines: {node: '>=14'} + /husky@9.0.10: + resolution: {integrity: sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==} + engines: {node: '>=18'} hasBin: true dev: true