fix: oxlint config (#7661)

* chore: engines node

* chore: update deps

* fix: oxlint

* chore: fix lint issues
This commit is contained in:
xingyu
2026-03-15 17:41:47 +08:00
committed by GitHub
parent a8ae891aff
commit 37d72c1628
17 changed files with 60 additions and 61 deletions

View File

@@ -82,7 +82,6 @@ const toggleKeydownListener = () => {
};
const toggleOpen = () => {
// oxlint-disable-next-line no-unused-expressions
open.value ? modalApi.close() : modalApi.open();
};

View File

@@ -41,7 +41,7 @@ const bindProps = computed(() => {
function toggleTheme(event: MouseEvent) {
const isAppearanceTransition =
// @ts-expect-error: startViewTransition is not available in the current DOM lib target
// @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) {