From 73be7f5acd005dfd780c8b0e93de91fd44dd50ba Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sat, 12 Sep 2026 14:14:49 -0400 Subject: [PATCH] style(scripts): use .at(-1) in the dot-segment fold oxlint's prefer-at rule; the repo-wide lint gate is an error, not a warning. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb --- config/scripts/windows-bin-spawn-predicate.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/scripts/windows-bin-spawn-predicate.mjs b/config/scripts/windows-bin-spawn-predicate.mjs index 6a3ec6d32d2..5a24fbcc61a 100644 --- a/config/scripts/windows-bin-spawn-predicate.mjs +++ b/config/scripts/windows-bin-spawn-predicate.mjs @@ -83,7 +83,7 @@ export function hasNodeModulesBinSpawn(contents) { if (segment === '.' || segment === '') { continue } - if (segment === '..' && folded.length && folded[folded.length - 1] !== '..') { + if (segment === '..' && folded.length && folded.at(-1) !== '..') { folded.pop() continue }