Skip to content

chore(FileInput): format the source with the repository's Prettier settings - #9263

Merged
cixzhang merged 1 commit into
mainfrom
fix/fileinput-prettier
Nov 1, 2026
Merged

cixzhang merged 1 commit into
mainfrom
fix/fileinput-prettier

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer impact

packages/core/src/FileInput/FileInput.tsx landed on main without Prettier formatting (from #9196). Lint doesn't check formatting at all, but the pre-commit formatter rewrites the file in any local merge of main that stages it. Pull requests that merge main locally therefore pick up a reformat of shipped source they never meant to change, and then fail "Check Changeset coverage". A separate pull request adds a formatting check on changed files to Lint, so this stops recurring.

Intended invariant

Shipped source on main is Prettier-clean, so merging main never rewrites a file the pull request didn't change.

Change

prettier --write on FileInput.tsx: one wrapped expression is joined onto a single line, and no tokens change. A patch Changeset in the "Other Changes" category covers the shipped file, as the coverage check requires for package source.

Evidence

Scope

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec prettier --check packages/core/src/FileInput/FileInput.tsx
  • pnpm check:changesets

Posted by Cindy's agent on her behalf.

…ttings

#9196 left FileInput.tsx unformatted; lint-staged then rewrites it in any
local merge of main and those pull requests fail changeset coverage.
Formatting only, with a [chore] patch Changeset.
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 1, 2026 6:12am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 1, 2026
@astracat-bot

astracat-bot Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 1, 2026, 6:16 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ready to approve: the only code change is Prettier's own output for FileInput.tsx (formatting the base file gives exactly this head), and the patch [chore] Changeset passes the Changeset checks. Nothing is required before merge. If you edit the description: the unformatted lines came from #9031 rather than #9196, and 19 other non-test files under packages/core/src still fail prettier --check, so the stated invariant holds for FileInput only for now.

[Automated review]

@cixzhang
cixzhang merged commit 8a03d75 into main Nov 1, 2026
50 checks passed
@cixzhang
cixzhang deleted the fix/fileinput-prettier branch November 1, 2026 07:14

This branch was successfully deployed

1 active deployment
Preview — 0b2e38db Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant