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
@@ -21,7 +21,11 @@
<span class="title">传统刷新</span>
</div>
<div class="card-body">
<div class="step" v-for="(step, i) in noHmrSteps" :key="i">
<div
v-for="(step, i) in noHmrSteps"
:key="i"
class="step"
>
<span class="step-num">{{ i + 1 }}</span>
<span class="step-text">{{ step }}</span>
</div>
@@ -32,7 +36,9 @@
</div>
</div>
<div class="vs-divider">VS</div>
<div class="vs-divider">
VS
</div>
<div class="method-card hmr">
<div class="card-header">
@@ -40,7 +46,11 @@
<span class="title">HMR 热更新</span>
</div>
<div class="card-body">
<div class="step" v-for="(step, i) in hmrSteps" :key="i">
<div
v-for="(step, i) in hmrSteps"
:key="i"
class="step"
>
<span class="step-num">{{ i + 1 }}</span>
<span class="step-text">{{ step }}</span>
</div>
@@ -56,12 +66,21 @@
<div class="flow-diagram">
<h4>HMR 工作流程</h4>
<div class="flow-steps">
<div class="flow-step" v-for="(step, i) in flowSteps" :key="i">
<div
v-for="(step, i) in flowSteps"
:key="i"
class="flow-step"
>
<div class="step-box">
<span class="step-icon">{{ step.icon }}</span>
<span class="step-label">{{ step.label }}</span>
</div>
<div v-if="i < flowSteps.length - 1" class="step-arrow"></div>
<div
v-if="i < flowSteps.length - 1"
class="step-arrow"
>
</div>
</div>
</div>
</div>
@@ -79,10 +98,16 @@
</tr>
</thead>
<tbody>
<tr v-for="tool in hmrTools" :key="tool.name">
<tr
v-for="tool in hmrTools"
:key="tool.name"
>
<td><strong>{{ tool.name }}</strong></td>
<td>
<span class="badge" :class="tool.supportClass">{{ tool.support }}</span>
<span
class="badge"
:class="tool.supportClass"
>{{ tool.support }}</span>
</td>
<td>{{ tool.speed }}</td>
<td>{{ tool.feature }}</td>