Apply current Prettier formatting#7997
Merged
Merged
Conversation
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
achamayou
June 28, 2026 09:49
View session
achamayou
approved these changes
Jun 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates several JS/TS sources to match the formatting produced by the current (unpinned) Prettier version used by scripts/prettier-checks.sh, addressing formatting drift introduced with Prettier 3.9.x.
Changes:
- Reformat a TypeScript union type in the npm app crypto endpoints file.
- Reformat a multi-line negated conditional in two sample constitution/action scripts.
Custom instructions used:
.github/copilot-instructions.md.github/instructions/reviewing.instructions.md
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/npm-app/src/endpoints/crypto.ts | Prettier-only reflow of a union type definition. |
| samples/minimal_ccf/app/actions.js | Prettier-only reflow of a negated conditional in checkReconfigurationType. |
| samples/constitutions/default/actions.js | Same conditional reflow as minimal sample, kept in sync with current formatting. |
cjen1-msft
approved these changes
Jun 29, 2026
|
Tick the box to add this pull request to the merge queue (same as
|
maxtropets
approved these changes
Jun 29, 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.
Running formatting on main exposed drift from the unpinned Prettier version used by
scripts/prettier-checks.sh. The drift starts with Prettier 3.9.x.Formatting updates
Tool update finding
scripts/prettier-checks.shinstalls latestprettierand@typespec/prettier-plugin-typespec.3.9.1, TypeSpec plugin1.13.0.3.8.5keeps the previous formatting; Prettier3.9.0+produces this diff.