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
+6 -2
View File
@@ -11,8 +11,12 @@ export const authPlugin: Plugin = {
async function redirectToLogin(loginMode = authStore.session?.role ?? 'admin') {
authStore.invalidateSession()
if (router.currentRoute.value.name !== 'login')
await router.replace({ name: 'login', state: { loginMode } })
if (router.currentRoute.value.name !== 'login') {
await router.replace({
name: 'login',
state: { loginMode },
})
}
}
setUnauthorizedHandler(() => redirectToLogin())