diff --git a/.husky/pre-commit b/.husky/pre-commit index d2ae35e84..35b91f068 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" yarn lint-staged diff --git a/knip.json b/knip.json index 6c08a5a35..8b6e53e3a 100644 --- a/knip.json +++ b/knip.json @@ -1,5 +1,11 @@ { "$schema": "https://unpkg.com/knip@3/schema.json", "ignore": ["**/setupTests.ts", "**/.eslintrc.js"], - "ignoreDependencies": ["better-sqlite3", "app", "@testing-library/jest-dom", "webpack-env"] + "ignoreDependencies": [ + "better-sqlite3", + "app", + "@testing-library/jest-dom", + "webpack-env", + "lint-staged" + ] } diff --git a/package.json b/package.json index a8f790489..275d17f19 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "prettier:check": "prettier --check .", "new": "backstage-cli new --scope internal", "knip": "knip", - "prepare": "husky install", - "postinstall": "husky install || true" + "prepare": "husky", + "postinstall": "husky || true" }, "workspaces": { "packages": [ @@ -48,7 +48,7 @@ "concurrently": "^8.0.0", "eslint": "^8.6.0", "fs-extra": "11.2.0", - "husky": "^8.0.0", + "husky": "^9.0.0", "jest": "^29.7.0", "knip": "^5.0.0", "lint-staged": "^15.0.0", @@ -62,7 +62,7 @@ "eslint --fix", "prettier --write" ], - "*.{json,md}": [ + "*.{json,md,yaml,yml}": [ "prettier --write" ] }, diff --git a/yarn.lock b/yarn.lock index 32e18e54e..cec06ed1c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21010,12 +21010,12 @@ __metadata: languageName: node linkType: hard -"husky@npm:^8.0.0": - version: 8.0.3 - resolution: "husky@npm:8.0.3" +"husky@npm:^9.0.0": + version: 9.0.10 + resolution: "husky@npm:9.0.10" bin: - husky: lib/bin.js - checksum: 837bc7e4413e58c1f2946d38fb050f5d7324c6f16b0fd66411ffce5703b294bd21429e8ba58711cd331951ee86ed529c5be4f76805959ff668a337dbfa82a1b0 + husky: bin.mjs + checksum: 55f4b6db6706ff0bc181607d6a64f55310cbb18b4d7db2a5b85608c87a80abafc14ac3a8c4d0b44d6272f4a62d4c2d3d5491d6a13e2cc7ac4895309e5e5f0ec2 languageName: node linkType: hard @@ -29260,7 +29260,7 @@ __metadata: concurrently: ^8.0.0 eslint: ^8.6.0 fs-extra: 11.2.0 - husky: ^8.0.0 + husky: ^9.0.0 jest: ^29.7.0 knip: ^5.0.0 lint-staged: ^15.0.0