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" },