fix(ci): lint-js — не кешувати node_modules + фікси нових unicorn-правил#1
Merged
Conversation
…равил Кеш CI відновлював node_modules від старого bun.lock (restore-keys), а bun install --frozen-lockfile поверх не рематеріалізовував вкладені копії (eslint/node_modules/ajv) — звідси «Cannot find module 'ajv/…'» та «Unexpected token 'Vue'». Тепер кешується лише ~/.bun/install/cache. Також виправлено 12 порушень нових unicorn-правил eslint 10.7, до яких CI раніше не доходив. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…n-88176d # Conflicts: # owner/src/components/docs/OwnerScreen.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Проблема
lint-js.ymlпадає на main з 2026-07-11 (перший червоний прогін — коміт ae2c983), недетерміновано: «Cannot find module 'ajv/lib/refs/json-schema-draft-04.json'», «Parsing error: Unexpected token 'Vue'» або 12 lint-помилок.Причини (дві незалежні)
node_modules.actions/cacheз fallbackrestore-keys: <os>-bun-відновлювавnode_modules, зібраний від іншогоbun.lock(останній зелений прогін — 2026-07-06, до бампу cursor 14).bun install --frozen-lockfileповерх такого дерева доставляє лише дельту пакетів і не рематеріалізовує вкладені копії на кшталтnode_modules/eslint/node_modules/ajv@6(eslint 10 потребує ajv 6, тоді як hoisted корінь — ajv 8). Post-крок кешу зберігав уже бите дерево під новим ключем — падіння самопідтримувалось. Чиста інсталяція (rm -rf node_modules && bun i --frozen-lockfile) відтворити помилку не дає — вкладена копія матеріалізується коректно; ламає саме інкремент поверх чужого дерева.Виправлення
setup-bun-deps: з кешу прибраноnode_modules, кешується лише~/.bun/install/cache(інсталяція з теплого кешу ~2 с; змінаpathміняє cache version — старі отруєні записи більше не відновляться).awaitзамість.then/.catchуapp/bin/task.mjs,async persist()з try/catch, перенос декларації після early exit уformat-ledger.js,some(!…)замість!every(…),vi.stubGlobal('localStorage', …),' '.repeat(3); уclaims.test.js— точковий disableunicorn/better-dom-traversing(false positive:childrenтам — вузли task-дерева, не DOM).Перевірка
Локально зелені:
oxlint,eslint .,jscpd,knip,vitest(79/79), дельта-lint@nitra/cursor— 0 порушень. Доки перегенеровано, change-файли додано.🤖 Generated with Claude Code