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
This commit is contained in:
Jinwoo-H
2026-09-12 14:14:49 -04:00
parent 8f89b31129
commit 73be7f5acd
@@ -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
}