Skip to content

Commit 9e24cde

Browse files
committed
lint fix
1 parent d3463d7 commit 9e24cde

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/processors/gridset/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function resolveGrid3CellImage(
5959

6060
// Debug logging for cells that fail to resolve
6161
const shouldDebug = imageName?.startsWith('-') && x !== undefined && y !== undefined;
62-
const debugLog = (msg: string) => {
62+
const debugLog = (msg: string): void => {
6363
if (shouldDebug) {
6464
console.log(`[Resolver] ${baseDir} (${x},${y}) "${imageName}": ${msg}`);
6565
}

src/processors/gridsetProcessor.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,9 +1058,13 @@ class GridsetProcessor extends BaseProcessor {
10581058

10591059
// Debug: log resolution for cells with images
10601060
if (declaredImageName && resolvedImageEntry) {
1061-
console.log(`[GridsetProcessor] Cell (${cellX + 1},${cellY + 1}) [XML coords]: ${declaredImageName} -> ${resolvedImageEntry}`);
1061+
console.log(
1062+
`[GridsetProcessor] Cell (${cellX + 1},${cellY + 1}) [XML coords]: ${declaredImageName} -> ${resolvedImageEntry}`
1063+
);
10621064
} else if (declaredImageName && !resolvedImageEntry) {
1063-
console.log(`[GridsetProcessor] Cell (${cellX + 1},${cellY + 1}) [XML coords]: ${declaredImageName} -> NOT FOUND`);
1065+
console.log(
1066+
`[GridsetProcessor] Cell (${cellX + 1},${cellY + 1}) [XML coords]: ${declaredImageName} -> NOT FOUND`
1067+
);
10641068
}
10651069

10661070
// Check if image is a symbol library reference

test/audit-images.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import { GridsetProcessor } from '../src/processors/gridsetProcessor';
9-
import { resolveGrid3CellImage } from '../src/processors/gridset/resolver';
109
import path from 'node:path';
1110

1211
interface AuditResult {
@@ -44,7 +43,6 @@ async function auditGridsetImages(gridsetPath: string): Promise<AuditResult> {
4443

4544
// Get all entries from the ZIP for manual inspection
4645
// We need to access the internal ZIP entries
47-
const fs = await import('node:fs');
4846
const AdmZip = (await import('adm-zip')).default;
4947
const zip = new AdmZip(gridsetPath);
5048
const allEntries = zip.getEntries().map((e: any) => e.entryName);

0 commit comments

Comments
 (0)