chore: 使用 lint-staged 配置提交前校验

Made-with: Cursor
This commit is contained in:
2026-04-03 20:30:47 +08:00
parent 5594ab0b8c
commit 1ffe2fa39e
2 changed files with 9 additions and 4 deletions

View File

@@ -17,6 +17,13 @@
"format:check": "prettier --check .",
"prepare": "husky"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --max-warnings=0",
"prettier --write"
],
"*.{css,json,md,html,yml,yaml,js,mjs,cjs}": "prettier --write"
},
"dependencies": {
"antd": "^6.3.5",
"react": "^19.2.4",