From 802e42d808294ac08a5b81cefe10fcd301efd07d Mon Sep 17 00:00:00 2001 From: snomiao Date: Sat, 13 Sep 2025 04:33:03 +0000 Subject: [PATCH] [fix] Resolve ESLint warning using configuration comment Add eslint-disable-next-line comments only for the specific component definitions that trigger the vue/one-component-per-file rule, instead of disabling the rule for the entire file. --- src/renderer/extensions/vueNodes/components/NodeSlots.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/extensions/vueNodes/components/NodeSlots.spec.ts b/src/renderer/extensions/vueNodes/components/NodeSlots.spec.ts index f58e115ad..2084db9ce 100644 --- a/src/renderer/extensions/vueNodes/components/NodeSlots.spec.ts +++ b/src/renderer/extensions/vueNodes/components/NodeSlots.spec.ts @@ -30,6 +30,7 @@ interface StubSlotData { boundingRect?: [number, number, number, number] } +// eslint-disable-next-line vue/one-component-per-file const InputSlotStub = defineComponent({ name: 'InputSlot', props: { @@ -50,6 +51,7 @@ const InputSlotStub = defineComponent({ ` }) +// eslint-disable-next-line vue/one-component-per-file const OutputSlotStub = defineComponent({ name: 'OutputSlot', props: {