Skip to content

The lint and format rules are @formancy/code-style 0.12.0, pinned exactly, in place of the copy - #143

Merged
sharkysan merged 3 commits into
mainfrom
chore/pin-code-style
Nov 1, 2026
Merged

sharkysan merged 3 commits into
mainfrom
chore/pin-code-style

Conversation

@sharkysan

Copy link
Copy Markdown
Owner

What

The lint and format rules are now @formancy/code-style 0.12.0, pinned exactly as a root devDependency, in place of the copy at scripts/code-style/ (0116, 0002).

  • eslint.config.mjs, prettier.config.mjs, scripts/lint.test.mjs, scripts/prettier-merge.mjs and its test import the package. In prettier-merge.mjs only the import line changed, so Report's identical copy takes the same one-line change.
  • scripts/code-style/ (module and test) is deleted; its test now runs in formancy.ai's package suite.
  • scripts/upstream-deps.mjs reads the root manifest too, test first: the new case (a ^0.12.0 in a root devDependency is refused) was watched failing against the old script, then passing.
  • Root devDependencies globals, eslint-plugin-react-hooks and @eslint-community/eslint-plugin-eslint-comments are removed (only the copy imported them; the package brings them). @eslint/js and typescript-eslint stay because scripts/lint.test.mjs imports them itself.
  • pnpm-workspace.yaml exempts @formancy/code-style@0.12.0 from the minimum release age, as for the other releases of the day.
  • Documents: 0116 gets a dated "package pinned" paragraph, its Status, Verified by and "copy that can drift" updated; 0002's Status says the narrowing ended; limitations restamped for both; CLAUDE.md, README, arc42 (crosscutting, verification, risks) and the CHANGELOG say the package instead of the copy; the risks-and-debt row for the copy is removed.

No rule changed

formancy 0.12.0's module is byte-identical to the copy it replaces (checked with cmp on 2026-10-31). Nothing was reformatted.

Ran locally

pnpm install --frozen-lockfile, pnpm build, pnpm typecheck, pnpm lint, pnpm format:check (after pnpm format twice), pnpm check:pkg, scripts/verify-licenses.mjs, scripts/upstream-deps.mjs, and pnpm test:repo with and without CI=true. Locally scripts/browsers.test.mjs fails on macOS (it also fails on origin/main: WebKit on darwin), and some scripts/cloudflare cases time out under load but pass run alone; CI is the judge for those.

Two commits (guard, then swap); it can be squashed.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sharkysan
sharkysan merged commit 6e18809 into main Nov 1, 2026
73 of 75 checks passed
@sharkysan
sharkysan deleted the chore/pin-code-style branch November 1, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants