chore: finalize oxlint migration config

This commit is contained in:
xingyu4j
2026-03-13 20:25:25 +08:00
parent 40c66958bc
commit e7fa87b301
47 changed files with 1466 additions and 414 deletions

View File

@@ -41,7 +41,7 @@ const bindProps = computed(() => {
function toggleTheme(event: MouseEvent) {
const isAppearanceTransition =
// @ts-expect-error
// @ts-expect-error: startViewTransition is not available in the current DOM lib target
document.startViewTransition &&
!window.matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!isAppearanceTransition || !event) {
@@ -54,7 +54,6 @@ function toggleTheme(event: MouseEvent) {
Math.max(x, innerWidth - x),
Math.max(y, innerHeight - y),
);
// @ts-ignore startViewTransition
const transition = document.startViewTransition(async () => {
isDark.value = !isDark.value;
await nextTick();