chore(frontend): upgrade ESLint config to v10 and migrate formatting (#522)

* chore(deps-dev): bump @antfu/eslint-config in /frontend

Bumps [@antfu/eslint-config](https://github.com/antfu/eslint-config) from 9.5.1 to 10.0.0.
- [Release notes](https://github.com/antfu/eslint-config/releases)
- [Commits](https://github.com/antfu/eslint-config/compare/v9.5.1...v10.0.0)

---
updated-dependencies:
- dependency-name: "@antfu/eslint-config"
  dependency-version: 10.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(frontend): migrate formatting to ESLint v10

Co-authored-by: Codex <noreply@openai.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
dependabot[bot]
2026-10-26 11:34:32 +08:00
committed by GitHub
co-authored by Codex Zyy
parent dffc417b9f
commit f0484c4e11
224 changed files with 6822 additions and 1659 deletions
+4 -1
View File
@@ -711,7 +711,10 @@ export function startAccountOAuth(data: AccountOAuthStartParam, options: Request
function providerInputBody(data: object) {
// Provider 文档是不透明 JSON,先编码,避免 HTTP 客户端合并配置时过滤特殊字段名。
return { headers: { 'Content-Type': 'application/json' }, data: JSON.stringify(data) }
return {
headers: { 'Content-Type': 'application/json' },
data: JSON.stringify(data),
}
}
export function completeAccountOAuth(data: AccountOAuthCompleteParam, options: RequestOptions = {}) {
@@ -92,12 +92,16 @@ export function callPluginManagementRoute(
call: PluginManagementRawRequest,
options: RequestOptions = {},
) {
const query = call.query ? `?${call.query}` : ''
const query = call.query
? `?${call.query}`
: ''
return requestPluginManagementRaw({
url: `${pluginManagementTargetPath(target)}/api/${encodePluginPath(call.path)}${query}`,
method: call.method,
data: call.body?.byteLength ? call.body : undefined,
headers: call.contentType ? { 'Content-Type': call.contentType } : undefined,
headers: call.contentType
? { 'Content-Type': call.contentType }
: undefined,
timeout: PLUGIN_MANAGEMENT_TIMEOUT_MS,
...options,
})