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:
sanbuphy
2026-02-20 01:19:00 +08:00
parent 66b2ba6e45
commit 4aca9df44e
6 changed files with 28 additions and 8 deletions
@@ -4,10 +4,10 @@
v-if="showProgress"
class="reading-progress"
:class="{ 'is-dragging': isDragging }"
:title="isDragging ? '拖动调整位置' : '阅读进度 ' + progress + '%'"
@mousedown="startDrag"
@touchstart="startDrag"
@click="handleClick"
:title="isDragging ? '拖动调整位置' : '阅读进度 ' + progress + '%'"
>
<svg class="progress-ring" viewBox="0 0 56 56">
<circle