From 3a78c92dbab51a06aec71ee5c8fa426078be967e Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Thu, 20 Jun 2024 16:42:58 +0700 Subject: [PATCH] modernize husky setup --- .husky/.gitignore | 1 - .husky/pre-commit | 3 --- package.json | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 .husky/.gitignore mode change 100755 => 100644 .husky/pre-commit diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec..0000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 index 36af219..2312dc5 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/package.json b/package.json index 91e827c..9fe9d2d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "type": "module", "scripts": { "lint": "eslint --fix . && prettier --write '**/*.{json,md}'", - "prepare": "husky install" + "prepare": "husky" }, "devDependencies": { "@changesets/cli": "~2.27.1",