From 55af139dda78df90d62427bf2785fad269dfd693 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 08:44:57 +0300 Subject: [PATCH] a --- .git-hooks/pre-commit | 8 ++++++++ .husky/pre-commit => .git-hooks/pre-commit1 | 0 package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .git-hooks/pre-commit rename .husky/pre-commit => .git-hooks/pre-commit1 (100%) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit new file mode 100644 index 000000000..b8bbbdac0 --- /dev/null +++ b/.git-hooks/pre-commit @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +<<<<<<< Updated upstream:.husky/pre-commit +. "$(dirname -- "$0")/_/husky.sh" +======= + +>>>>>>> Stashed changes:.git-hooks/pre-commit + +npm run lint-staged diff --git a/.husky/pre-commit b/.git-hooks/pre-commit1 similarity index 100% rename from .husky/pre-commit rename to .git-hooks/pre-commit1 diff --git a/package.json b/package.json index 42d7f0b65..006e5538b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", - "prepare": "husky install", + "prepare": "git config core.hooksPath .git-hooks", "lint-staged": "lint-staged" },