diff --git a/.git-hooks/pre-commit1 b/.git-hooks/pre-commit1 deleted file mode 100644 index 7e154687b..000000000 --- a/.git-hooks/pre-commit1 +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm run lint-staged diff --git a/package-lock.json b/package-lock.json index 5ccf209b7..f3fc88870 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-vue": "^9.32.0", "globals": "^15.14.0", - "husky": "^9.1.7", "lint-staged": "^15.4.3", "prettier": "^3.4.2", "vitepress": "^1.6.3" @@ -2718,22 +2717,6 @@ "node": ">=16.17.0" } }, - "node_modules/husky": { - "version": "9.1.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", - "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", - "dev": true, - "license": "MIT", - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", diff --git a/package.json b/package.json index 006e5538b..ab1cee7cf 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "prepare": "git config core.hooksPath .git-hooks", "lint-staged": "lint-staged" - }, "devDependencies": { "@eslint/js": "^9.19.0", @@ -15,14 +14,14 @@ "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-vue": "^9.32.0", "globals": "^15.14.0", - "husky": "^8.0.0", "lint-staged": "^15.4.3", "prettier": "^3.4.2", "vitepress": "^1.6.3" }, - "lint-staged": { - "*.{js,ts,vue}": ["prettier --write", + "lint-staged": { + "*.{js,ts,vue}": [ + "prettier --write", "eslint --fix" ] -} + } }