feat: 新增git提交规范husky、lint-staged、commitlint

This commit is contained in:
WANGFAN\wangf 2024-12-05 18:26:52 +08:00
parent fec805fbfb
commit 04b9b1190b
4 changed files with 0 additions and 16 deletions

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "$(dirname "$0")/husky.sh"

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname "$0")/husky.sh"
pnpm run fix

View File

@ -31,14 +31,6 @@
"prepare": "husky install", "prepare": "husky install",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"lint-staged": {
"src/**/*.{ts,vue}": [
"eslint"
],
"test/**/*.{ts,tsx,js,vue}": [
"eslint"
]
},
"dependencies": { "dependencies": {
"@arco-design/color": "^0.4.0", "@arco-design/color": "^0.4.0",
"@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-javascript": "^6.2.2",

View File

@ -8,8 +8,6 @@
import { loadingPage } from "@/utils/loading-page"; import { loadingPage } from "@/utils/loading-page";
import { useThemeMethods } from "@/hooks/useThemeMethods"; import { useThemeMethods } from "@/hooks/useThemeMethods";
let a = "12345323234";
// //
const onTheme = () => { const onTheme = () => {
let { initTheme } = useThemeMethods(); let { initTheme } = useThemeMethods();