From b6ecbed1465887cec28ab4d517c52bac9fb2766f Mon Sep 17 00:00:00 2001 From: 64johnlee <64lamei@gmail.com> Date: Sat, 2 May 2026 17:02:51 +0800 Subject: [PATCH 1/2] fix: parse imperial/metric sizes for led and diode string footprints --- src/footprinter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/footprinter.ts b/src/footprinter.ts index f3d30daa..bc73e635 100644 --- a/src/footprinter.ts +++ b/src/footprinter.ts @@ -407,7 +407,7 @@ export const footprinter = (): Footprinter & { } else { target[prop] = true target.fn = prop - if (prop === "res" || prop === "cap") { + if (prop === "res" || prop === "cap" || prop === "diode" || prop === "led") { if (v) { if (typeof v === "string" && v.includes("_metric")) { target.metric = v.split("_metric")[0] From 3354f6e8f8b1a0f6a74c45b6823a2b40b1fc7ed2 Mon Sep 17 00:00:00 2001 From: john lee <64lamei@gmail.com> Date: Sun, 31 May 2026 06:56:14 +0800 Subject: [PATCH 2/2] style: apply biome formatting to led/diode prop check Fixes failing format-check CI by reflowing the multi-condition if statement per biome formatter. --- src/footprinter.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/footprinter.ts b/src/footprinter.ts index bc73e635..c991af2d 100644 --- a/src/footprinter.ts +++ b/src/footprinter.ts @@ -407,7 +407,12 @@ export const footprinter = (): Footprinter & { } else { target[prop] = true target.fn = prop - if (prop === "res" || prop === "cap" || prop === "diode" || prop === "led") { + if ( + prop === "res" || + prop === "cap" || + prop === "diode" || + prop === "led" + ) { if (v) { if (typeof v === "string" && v.includes("_metric")) { target.metric = v.split("_metric")[0]