Skip to content

AI-native design editor. Open-source Figma alternative.

chore(lint): enforce type imports in tests

Danila Poyarkova63ac93a3d86
diff --git a/oxlint.json b/oxlint.json
index b8d2bf20b..3c7067663 100644
--- a/oxlint.json
+++ b/oxlint.json
@@ -167,7 +167,6 @@
"typescript/no-non-null-assertion": "off",
"no-unused-vars": "off",
"no-empty-function": "off",
- "typescript/consistent-type-imports": "off",
"open-pencil/no-inline-named-types": "off",
"complexity": "off"
}
diff --git a/tests/engine/fig/import/instance-regressions.test.ts b/tests/engine/fig/import/instance-regressions.test.ts
index d06946eca..ed10759b7 100644
--- a/tests/engine/fig/import/instance-regressions.test.ts
+++ b/tests/engine/fig/import/instance-regressions.test.ts
@@ -6,8 +6,8 @@ import {
exportFigFile,
importNodeChanges,
initCodec,
- SceneGraph,
FigmaAPI,
+ type SceneGraph,
type SceneNode,
type Fill
} from '@open-pencil/core'
diff --git a/tests/engine/fig/import/property-integrity.test.ts b/tests/engine/fig/import/property-integrity.test.ts
index 994b583f2..3763725b5 100644
--- a/tests/engine/fig/import/property-integrity.test.ts
+++ b/tests/engine/fig/import/property-integrity.test.ts
@@ -6,8 +6,8 @@ import {
exportFigFile,
importNodeChanges,
initCodec,
- SceneGraph,
FigmaAPI,
+ type SceneGraph,
type SceneNode,
type Fill
} from '@open-pencil/core'
diff --git a/tests/engine/render/canvas/cache.test.ts b/tests/engine/render/canvas/cache.test.ts
index 188e85199..f7f6b5d55 100644
--- a/tests/engine/render/canvas/cache.test.ts
+++ b/tests/engine/render/canvas/cache.test.ts
@@ -6,8 +6,8 @@ import {
initCodec,
parseFigFile,
renderNodesToImage,
- SceneGraph,
SkiaRenderer,
+ type SceneGraph,
type SceneNode
} from '@open-pencil/core'
diff --git a/tests/engine/tools/read.test.ts b/tests/engine/tools/read.test.ts
index 7caeddecc..111d6adeb 100644
--- a/tests/engine/tools/read.test.ts
+++ b/tests/engine/tools/read.test.ts
@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'
import { FigmaAPI } from '@open-pencil/core'
-import { ALL_TOOLS, getTool, setupToolTest, type ToolResult } from '#tests/helpers/tools'
+import { getTool, setupToolTest, type ALL_TOOLS, type ToolResult } from '#tests/helpers/tools'
describe('find_nodes', () => {
test('finds by name', () => {
diff --git a/tests/helpers/layout.ts b/tests/helpers/layout.ts
index 8cf8bb13e..64c858582 100644
--- a/tests/helpers/layout.ts
+++ b/tests/helpers/layout.ts
@@ -1,5 +1,5 @@
-import { readFigFile, SceneGraph } from '@open-pencil/core'
-import type { GridTrack, SceneNode } from '@open-pencil/core'
+import { readFigFile } from '@open-pencil/core'
+import type { GridTrack, SceneGraph, SceneNode } from '@open-pencil/core'
export function pageId(graph: SceneGraph) {
return graph.getPages()[0].id