From a6a93e074971f143756016d2f24f01a41dafe88c Mon Sep 17 00:00:00 2001 From: jiushi21 <48662477+zclsx@users.noreply.github.com> Date: Tue, 12 Mar 2024 08:54:25 +0800 Subject: [PATCH] chore: remove redundant comments (#108) --- src/component.ts | 2 +- src/useDraggable.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component.ts b/src/component.ts index e7e889bc..2d12dc07 100644 --- a/src/component.ts +++ b/src/component.ts @@ -93,7 +93,7 @@ export const VueDraggable = defineComponent({ }, {} as any) const options = computed(() => { - // eslint-disable-next-line @typescript-eslint/no-unused-vars + // eslint-disable-next-line const { modelValue, ...rest } = toRefs(props) const opt = Object.entries(rest).reduce((acc, [key, value]) => { // @ts-ignore diff --git a/src/useDraggable.ts b/src/useDraggable.ts index c18c624b..5de05d67 100644 --- a/src/useDraggable.ts +++ b/src/useDraggable.ts @@ -208,7 +208,7 @@ export function useDraggable(...args: any[]): UseDraggableReturn { } function mergeOptions() { - // eslint-disable-next-line @typescript-eslint/no-unused-vars + // eslint-disable-next-line const { immediate, clone, ...restOptions } = unref(options) ?? {} return mergeOptionsEvents( list === null ? {} : presetOptions,