Keep calm and commit

This commit is contained in:
zyronon 2024-04-04 22:24:34 +08:00
parent 48f54ea521
commit 51b2708ca9
2 changed files with 4 additions and 1 deletions

1
.husky/pre-commit Normal file
View File

@ -0,0 +1 @@
pnpm run format

View File

@ -8,7 +8,8 @@
"report": "vite build", "report": "vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write src/" "format": "prettier --write src/",
"prepare": "husky"
}, },
"dependencies": { "dependencies": {
"@jambonn/vue-lazyload": "1.0.9", "@jambonn/vue-lazyload": "1.0.9",
@ -46,4 +47,5 @@
"vite": "4.5.3", "vite": "4.5.3",
"vite-plugin-cdn-import": "0.3.5" "vite-plugin-cdn-import": "0.3.5"
} }
} }