[RN] Make yarn the source of truth for JS lint/format - #57784
Draft
mattcarrollcode wants to merge 2 commits into
Draft
[RN] Make yarn the source of truth for JS lint/format#57784mattcarrollcode wants to merge 2 commits into
mattcarrollcode wants to merge 2 commits into
Conversation
## Summary Point synced JavaScript formatting and linting at the repository's own Prettier + ESLint so CI is the source of truth: add `yarn f` (Prettier), expand the Prettier globs to all JS-family extensions, and make the CI ESLint step propagate its exit status instead of swallowing it. ## Changelog [Internal] ## Test Plan `yarn lint`, `yarn format-check`, and `yarn f` run from the repo root; the GitHub `lint` job runs both on this PR. Changelog: [Internal]
mattcarrollcode
force-pushed
the
rn-yarn-lint
branch
2 times, most recently
from
August 4, 2026 19:25
e5a91e4 to
8daed7a
Compare
## Summary Extend yarn-owned formatting to every synced non-JS language so GitHub CI is the single source of truth and internal (Meta) + GitHub produce byte-identical output, using the OSS toolchain: - `scripts/lint/clang-format.sh` — clang-format `21.1.2` (C/C++/Obj-C). - `scripts/lint/ktfmt.sh` — ktfmt `0.64` (Kotlin `.kt` and `.kts`). - `scripts/lint/google-java-format.sh` — google-java-format `1.23.0` (Java). - `scripts/lint/pyfmt.sh` — ufmt (`ruff-api` formatter + `usort`), configured in `pyproject.toml` (Python). - `yarn f` runs Prettier + all four; each has a `-check` variant. The CI `lint` job runs all of them (JDK 17 via setup-java for ktfmt/google-java-format; Python provisions ufmt from PyPI). - Reformats: 78 Kotlin `.kt` + 2 `.kts` to ktfmt `0.64`. C/C++/Obj-C, Java, and Python are already clean under the matching OSS releases, so no reformat there. ## Changelog [Internal] ## Test Plan `yarn clang-format-check`, `yarn lint-kotlin-check`, `yarn lint-java-check` (JDK 17), and `yarn lint-python-check` all clean on the synced tree; `yarn f` formats JS + native + Python. The GitHub `lint` job runs all checks on this PR. Changelog: [Internal]
mattcarrollcode
force-pushed
the
rn-yarn-lint
branch
2 times, most recently
from
August 4, 2026 20:43
8daed7a to
060c402
Compare
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.
Summary
Point synced JavaScript formatting and linting at the repository's own Prettier +
ESLint so CI is the source of truth: add
yarn f(Prettier), expand the Prettierglobs to all JS-family extensions, and make the CI ESLint step propagate its exit
status instead of swallowing it.
Changelog
[Internal]
Test Plan
yarn lint,yarn format-check, andyarn frun from the repo root; the GitHublintjob runs both on this PR.Changelog: [Internal]