mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
[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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user