Skip to content

chore(prettier): move old formatter and document maintenance - #943

Merged
leonidaz merged 5 commits into
mainfrom
docs/prettier-transition
Sep 28, 2026
Merged

leonidaz merged 5 commits into
mainfrom
docs/prettier-transition

Conversation

@leonidaz

@leonidaz leonidaz commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Move the existing formatter from packages/prettier-plugin to packages/old-prettier-plugin to prepare the package transition as a separate, reviewable step. Its source and tests are unchanged renames. Update the repository path, typecheck and test paths, and workspace links.

Update the new implementation's README to use @tsrx/prettier-plugin as its title and public import name, remove the experimental and undecided-package-name wording, and add Ongoing: keeping up with Prettier from #852. The checklist covers importing upstream tests, refreshing known failures, maintaining copied JSX printers, checking AST postprocessing, and reviewing range/cursor behavior when upgrading Prettier. The README also documents selection formatting for users and recommends Prettier 3.9.9 or newer while retaining the >=3.6.0 peer range.

Existing consumers continue to resolve @tsrx/prettier-plugin to the old implementation at its new path. The new implementation stays in packages/tsrx-prettier-plugin; the package identity and final folder rename follow in a separate PR after this one merges. This is an internal folder move and documentation update, with no release changeset.

Validation:

  • pnpm test --project prettier-plugin --project tsrx-prettier-plugin --project tsrx-prettier-plugin-3.6 --project tsrx-mcp: 6,005 passed, 17 existing skips.
  • pnpm exec tsgo --noEmit -p packages/old-prettier-plugin/tsconfig.typecheck.json.
  • Verified root, MCP, and website consumers resolve @tsrx/prettier-plugin to packages/old-prettier-plugin/src/index.js.
  • pnpm install --frozen-lockfile --ignore-scripts --offline.
  • Formatting checks for changed files, pnpm rules:check, pnpm changeset:check, and git diff --check.

Note

Low Risk
Internal path and documentation updates only; published package name and consumer resolution stay the same until a follow-up PR.

Overview
This PR renames the published formatter package directory from packages/prettier-plugin to packages/old-prettier-plugin without changing its npm name (@tsrx/prettier-plugin). Root typecheck, Vitest (prettier-plugin project), and pnpm lockfile workspace links now point at the new path so CI and dependents keep resolving the same package.

packages/tsrx-prettier-plugin/README.md is updated for the upcoming swap: it drops experimental/undecided naming language, documents @tsrx/prettier-plugin as the public import, adds a Selection formatting section, splits Prettier versions guidance, links migrated tests to the previous implementation, and adds an Ongoing: keeping up with Prettier upgrade checklist from #852.

The new formatter in packages/tsrx-prettier-plugin is unchanged in this PR; package identity and folder rename follow separately.

Reviewed by Cursor Bugbot for commit e6019ce. Bugbot is set up for automated code reviews on this repo. Configure here.

@leonidaz
leonidaz merged commit e99d512 into main Sep 28, 2026
8 checks passed
@leonidaz
leonidaz deleted the docs/prettier-transition branch September 28, 2026 20:44
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.

1 participant