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
@@ -5,7 +5,9 @@
<template>
<div class="spa-state-demo">
<div class="header">
<div class="title">页面切换时输入会不会丢</div>
<div class="title">
页面切换时输入会不会丢
</div>
<div class="subtitle">
同样点击切换页面MPA 会像刷新一样清空SPA 会保留状态
</div>
@@ -26,7 +28,12 @@
>
SPA局部切换
</button>
<button class="reset" @click="resetAll">重置</button>
<button
class="reset"
@click="resetAll"
>
重置
</button>
</div>
<div class="app">
@@ -43,8 +50,16 @@
</div>
<div class="screen">
<div v-if="loading" class="loading">加载中...</div>
<div v-else class="content">
<div
v-if="loading"
class="loading"
>
加载中...
</div>
<div
v-else
class="content"
>
<div class="row">
当前页面<strong>{{ page }}</strong>
</div>
@@ -52,7 +67,11 @@
<div class="form">
<label>
备注模拟表单输入
<input v-model="note" type="text" placeholder="输入点东西试试" />
<input
v-model="note"
type="text"
placeholder="输入点东西试试"
>
</label>
<div class="help">
提示切到别的页面再回来看看这段文字还在不在
@@ -61,23 +80,39 @@
<div class="row">
购物车数量模拟状态
<button class="small" @click="cart = Math.max(0, cart - 1)">
<button
class="small"
@click="cart = Math.max(0, cart - 1)"
>
-
</button>
<strong class="num">{{ cart }}</strong>
<button class="small" @click="cart = cart + 1">+</button>
<button
class="small"
@click="cart = cart + 1"
>
+
</button>
</div>
</div>
</div>
<div class="explain">
<div class="card">
<div class="label">你现在看到的现象</div>
<div class="value">{{ explainText }}</div>
<div class="label">
你现在看到的现象
</div>
<div class="value">
{{ explainText }}
</div>
</div>
<div class="card">
<div class="label">背后的原因一句话</div>
<div class="value">{{ reasonText }}</div>
<div class="label">
背后的原因一句话
</div>
<div class="value">
{{ reasonText }}
</div>
</div>
</div>
</div>