[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.
This commit is contained in:
snomiao
2025-09-13 04:33:03 +00:00
parent 4ec6223189
commit 802e42d808

View File

@@ -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: {