Skip to content

Commit fa8a0bb

Browse files
committed
fix: satisfy consistent-type-imports in tools/oxlint-plugins/comfy.ts
Main added this file after the widened lint scope was proposed here; its typeof import(...) type annotations trip @typescript-eslint/consistent-type-imports now that eslint runs over tools/. Hoist the module types into top-level import type statements instead.
1 parent b9652f5 commit fa8a0bb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tools/oxlint-plugins/comfy.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { createRequire } from 'node:module'
22

3+
import type * as ComfyIngestTypesModule from './comfyIngestTypes'
4+
import type * as VitestCleanupModule from './vitestCleanup'
5+
36
const requireFrom = createRequire(import.meta.url)
47
const { noDuplicateIngestType } = requireFrom(
58
'./comfyIngestTypes.ts'
6-
) as typeof import('./comfyIngestTypes')
9+
) as typeof ComfyIngestTypesModule
710
const { noModuleScopeVitestMocks, noRedundantVitestCleanup } = requireFrom(
811
'./vitestCleanup.ts'
9-
) as typeof import('./vitestCleanup')
12+
) as typeof VitestCleanupModule
1013

1114
export default {
1215
meta: { name: 'comfy' },

0 commit comments

Comments
 (0)