Repository navigation
docs(www): format yield* in Effect snippets - #56568
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Looks good. This is a docs-only, whitespace-only change: no yield * remains under src/docs/content, and with the repo's pinned Prettier (3.6.2) and root config, prettier --check leaves all the changed snippets alone. plugins/effect/rpc.mdx is still flagged, but only for an unrelated ternary near line 96, and the base has the same warning. Public API is unchanged.
This was referenced Oct 20, 2026
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.
Why
Thirteen Effect examples in the v2 build docs show
yield *with a space, and some split it across lines:These snippets are bodies of an
Effect.gengenerator. Prettier formats each code block on its own, so it reads a bareyieldas an identifier and*as multiplication. Readers copy code that looks wrong.What Changes
Each affected snippet is formatted as the body of a generator and marked
{/* prettier-ignore */}, so the formatter leaves it alone:The snippets are in
build/client/effect,build/plugins/effectandbuild/plugins/effect/rpc. Only their whitespace and line breaks change.Verification
The build and link validation pass, Prettier leaves the files unchanged, no
yield *remains, and the rendered/v2/docs/build/client/effect/page showsyield*with no visibleprettier-ignoretext.