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

@@ -4,7 +4,6 @@ import type { MenuRecordRaw } from '@vben-core/typings';
import { computed } from 'vue';
import { MenuBadge, MenuItem, SubMenu as SubMenuComp } from './components';
// eslint-disable-next-line import/no-self-import
import SubMenu from './sub-menu.vue';
interface Props {

View File

@@ -12,11 +12,11 @@ const { isFullscreen, toggle } = useFullscreen();
// 重新检查全屏状态
isFullscreen.value = !!(
document.fullscreenElement ||
// @ts-ignore
// @ts-expect-error: vendor fullscreen APIs are not included in the standard DOM typings
document.webkitFullscreenElement ||
// @ts-ignore
// @ts-expect-error: vendor fullscreen APIs are not included in the standard DOM typings
document.mozFullScreenElement ||
// @ts-ignore
// @ts-expect-error: vendor fullscreen APIs are not included in the standard DOM typings
document.msFullscreenElement
);
</script>

View File

@@ -11,14 +11,13 @@ import type {
} from './types';
import { computed, useAttrs } from 'vue';
// @ts-ignore
// @ts-expect-error: vue-json-viewer does not expose compatible typings for this import path
import VueJsonViewer from 'vue-json-viewer';
import { $t } from '@vben/locales';
import { isBoolean } from '@vben-core/shared/utils';
// @ts-ignore
import JsonBigint from 'json-bigint';
defineOptions({ name: 'JsonViewer' });

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();

View File

@@ -316,7 +316,7 @@ async function init() {
'[Vben Vxe Table]: The formConfig in the grid is not supported, please use the `formOptions` props',
);
}
// @ts-ignore
// @ts-expect-error: setState is injected by the extended grid api wrapper at runtime
props.api?.setState?.({ gridOptions: defaultGridOptions });
// form 由 vben-form 代替所以需要保证query相关事件可以拿到参数
extendProxyOptions(props.api, defaultGridOptions, () =>