From 296e1e5195d4b2c78af172c62074e5673c624423 Mon Sep 17 00:00:00 2001 From: "Stuart B. Wilkins" Date: Mon, 2 Nov 2026 05:58:44 -0500 Subject: [PATCH] fix(lint): pin Node for pre-commit hooks nodeenv resolves unpinned Node to the 27.0.0-alpha.0.0.0 pre-release, which it cannot parse, so the markdownlint environment fails to build. Assisted-by: opencode:claude-sonnet-5-5 --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24abc86..e978537 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,13 @@ # zizmor, which has no standard auto-discovery and takes an explicit # --config argument. +# Node-based hooks (markdownlint) get a pinned Node. Unpinned, nodeenv +# resolves "latest" to a pre-release such as 27.0.0-alpha.0.0.0, which it +# cannot parse, and the hook environment fails to build. Keep this on the +# same major line as nodejs in pixi.toml. +default_language_version: + node: 26.13.0 + repos: # ──────────────────────────────────────────────────────────── # Generic hygiene + syntax checks