chore: add husky pre-commit hook and auto-fix lint warnings
- Install husky for git hooks - Add pre-commit hook to run 'npm run lint -- --fix' before each commit - Auto-fix 6 additional warnings (attribute order, escape chars) - 0 errors, 208 warnings (down from 214) This ensures code quality checks run automatically before commits. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Generated
+17
@@ -21,6 +21,7 @@
|
||||
"@eslint/js": "^9.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"eslint-plugin-vue": "^9.30.0",
|
||||
"husky": "^9.1.7",
|
||||
"markdown-it-katex": "^2.0.3",
|
||||
"prettier": "^3.7.4",
|
||||
"vue-eslint-parser": "^9.4.3"
|
||||
@@ -2653,6 +2654,22 @@
|
||||
"url": "https://github.com/fb55/entities?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/husky": {
|
||||
"version": "9.1.7",
|
||||
"resolved": "https://registry.npmmirror.com/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.npmmirror.com/ignore/-/ignore-5.3.2.tgz",
|
||||
|
||||
Reference in New Issue
Block a user