From 4e39f207a723c4dffc8e6e39a7c9809220163874 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 29 Jul 2025 17:50:05 +0800 Subject: [PATCH] fix(vben5): remove husky and lint-staged --- apps/vben5/.husky/commit-msg | 6 ------ apps/vben5/.husky/post-merge | 3 --- apps/vben5/.husky/pre-commit | 7 ------- apps/vben5/.lintstagedrc.mjs | 20 -------------------- 4 files changed, 36 deletions(-) delete mode 100644 apps/vben5/.husky/commit-msg delete mode 100644 apps/vben5/.husky/post-merge delete mode 100644 apps/vben5/.husky/pre-commit delete mode 100644 apps/vben5/.lintstagedrc.mjs diff --git a/apps/vben5/.husky/commit-msg b/apps/vben5/.husky/commit-msg deleted file mode 100644 index 270ebb8c1..000000000 --- a/apps/vben5/.husky/commit-msg +++ /dev/null @@ -1,6 +0,0 @@ -echo Start running commit-msg hook... - -# Check whether the git commit information is standardized -pnpm exec commitlint --edit "$1" - -echo Run commit-msg hook done. diff --git a/apps/vben5/.husky/post-merge b/apps/vben5/.husky/post-merge deleted file mode 100644 index 83fa775d5..000000000 --- a/apps/vben5/.husky/post-merge +++ /dev/null @@ -1,3 +0,0 @@ -# 每次 git pull 之后, 安装依赖 - -pnpm install diff --git a/apps/vben5/.husky/pre-commit b/apps/vben5/.husky/pre-commit deleted file mode 100644 index 5dccee288..000000000 --- a/apps/vben5/.husky/pre-commit +++ /dev/null @@ -1,7 +0,0 @@ -# update `.vscode/vben-admin.code-workspace` file -pnpm vsh code-workspace --auto-commit - -# Format and submit code according to lintstagedrc.js configuration -pnpm exec lint-staged - -echo Run pre-commit hook done. diff --git a/apps/vben5/.lintstagedrc.mjs b/apps/vben5/.lintstagedrc.mjs deleted file mode 100644 index 94b0192a7..000000000 --- a/apps/vben5/.lintstagedrc.mjs +++ /dev/null @@ -1,20 +0,0 @@ -export default { - '*.md': ['prettier --cache --ignore-unknown --write'], - '*.vue': [ - 'prettier --write', - 'eslint --cache --fix', - 'stylelint --fix --allow-empty-input', - ], - '*.{js,jsx,ts,tsx}': [ - 'prettier --cache --ignore-unknown --write', - 'eslint --cache --fix', - ], - '*.{scss,less,styl,html,vue,css}': [ - 'prettier --cache --ignore-unknown --write', - 'stylelint --fix --allow-empty-input', - ], - 'package.json': ['prettier --cache --write'], - '{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': [ - 'prettier --cache --write--parser json', - ], -};