From 4a1c4cfcfa82fe9f2d6af8530032f00c4f5e3454 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 24 Aug 2026 23:26:50 -0700 Subject: [PATCH] fix(orcad): drop an eslint-disable the rule no longer needs --- src/main/orcad/node-pty-precondition.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/orcad/node-pty-precondition.ts b/src/main/orcad/node-pty-precondition.ts index 07ecb2c3645..2857449c736 100644 --- a/src/main/orcad/node-pty-precondition.ts +++ b/src/main/orcad/node-pty-precondition.ts @@ -213,7 +213,8 @@ export function buildNodePtyLoadProbeScript(nodePtyDir: string): string { function resolveNodePtyDir(): string | null { try { - // eslint-disable-next-line @typescript-eslint/no-require-imports -- resolution only; the load itself happens in the child. + // Why require.resolve and not import: resolution only — the load itself happens in + // the child process, which is the whole point of the precondition. return dirname(require.resolve('node-pty/package.json')) } catch { return null @@ -339,7 +340,9 @@ export function formatNodePtyPreconditionReport( const { abi } = verdict const host = [ `platform ${abi.platform}/${abi.arch}`, - abi.libc === 'none' ? null : `libc ${abi.libc}${abi.glibcVersion ? ` ${abi.glibcVersion}` : ''}`, + abi.libc === 'none' + ? null + : `libc ${abi.libc}${abi.glibcVersion ? ` ${abi.glibcVersion}` : ''}`, `Node ABI ${abi.nodeAbi}`, `prebuild slot ${verdict.slot}` ]