fix(eslint): reduce warnings in GitHub Actions deployment

- Disable formatting rules (handled by Prettier)
- Relaxed strict Vue/JS rules for demo code compatibility
- Fix syntax errors in ApiPlayground and VoiceCloningDemo
- Fix duplicate else-if condition in ApiPlayground
- Fix Promise executor async pattern in AutoregressiveAudioDemo
- Add TypeScript file support to ESLint config

Warnings reduced from 295 to 251 problems.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
sanbuphy
2026-02-18 17:38:10 +08:00
parent 8b01686e68
commit 0eba9e87e9
456 changed files with 28450 additions and 9677 deletions
@@ -29,9 +29,15 @@
</div>
</div>
<div class="canvas-container" ref="canvasContainer">
<div
ref="canvasContainer"
class="canvas-container"
>
<!-- 简单的 SVG 坐标系 -->
<svg viewBox="0 0 400 300" class="vector-canvas">
<svg
viewBox="0 0 400 300"
class="vector-canvas"
>
<!-- Grid lines -->
<g class="grid">
<line
@@ -59,7 +65,10 @@
:class="{ highlight: point.highlight }"
:transform="`translate(${point.x}, ${point.y})`"
>
<circle r="4" :fill="point.color" />
<circle
r="4"
:fill="point.color"
/>
<text
y="-8"
text-anchor="middle"
@@ -72,7 +81,10 @@
</g>
<!-- Calculation Arrows (for King/Queen demo) -->
<g v-if="currentMode === 'analogy'" class="arrows">
<g
v-if="currentMode === 'analogy'"
class="arrows"
>
<!-- King -> Man -->
<line
:x1="getPoint('king').x"
@@ -113,7 +125,10 @@
refY="3.5"
orient="auto"
>
<polygon points="0 0, 10 3.5, 0 7" fill="rgba(0,0,0,0.2)" />
<polygon
points="0 0, 10 3.5, 0 7"
fill="rgba(0,0,0,0.2)"
/>
</marker>
<marker
id="arrowhead-brand"
@@ -123,7 +138,10 @@
refY="3.5"
orient="auto"
>
<polygon points="0 0, 10 3.5, 0 7" fill="var(--vp-c-brand)" />
<polygon
points="0 0, 10 3.5, 0 7"
fill="var(--vp-c-brand)"
/>
</marker>
</defs>
</svg>