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
@@ -40,9 +40,22 @@
</div>
<!-- 箭头 -->
<div class="arrow-group" v-if="!allCommitted">
<div class="arrow" :class="{ active: hasStaged }"></div>
<div class="arrow-label" v-if="hasStaged">git add</div>
<div
v-if="!allCommitted"
class="arrow-group"
>
<div
class="arrow"
:class="{ active: hasStaged }"
>
</div>
<div
v-if="hasStaged"
class="arrow-label"
>
git add
</div>
</div>
<!-- 暂存区 -->
@@ -62,16 +75,26 @@
<span class="file-name">{{ file.name }}</span>
<span class="file-status">待提交</span>
</div>
<div v-if="stagedFiles.length === 0" class="empty-tip">
<div
v-if="stagedFiles.length === 0"
class="empty-tip"
>
暂无文件
</div>
</div>
</div>
<!-- 箭头 -->
<div class="arrow-group" v-if="hasStaged">
<div class="arrow active"></div>
<div class="arrow-label">git commit</div>
<div
v-if="hasStaged"
class="arrow-group"
>
<div class="arrow active">
</div>
<div class="arrow-label">
git commit
</div>
</div>
<!-- 仓库区 -->
@@ -90,7 +113,10 @@
<span class="commit-icon"></span>
<span class="commit-msg">{{ commit.msg }}</span>
</div>
<div v-if="commits.length === 0" class="empty-tip">
<div
v-if="commits.length === 0"
class="empty-tip"
>
暂无提交
</div>
</div>
@@ -100,29 +126,29 @@
<!-- 操作按钮 -->
<div class="action-panel">
<button
@click="modifyFile"
class="action-btn"
:disabled="allModified"
@click="modifyFile"
>
修改文件
</button>
<button
@click="stageFiles"
class="action-btn"
:disabled="!hasModified || allStaged"
@click="stageFiles"
>
📌 暂存修改
</button>
<button
@click="commitFiles"
class="action-btn"
:disabled="!hasStaged"
@click="commitFiles"
>
提交版本
</button>
<button
@click="reset"
class="action-btn secondary"
@click="reset"
>
🔄 重置
</button>