Repository navigation
fix(web): cover messages/*.json in the format check - #698
Merged
Merged
Conversation
The format scripts only globbed src/**/*.{ts,tsx}, so the translation files
were never checked — and an indentation slip in en.json had already landed
through that gap (bulk.dismissAllConfirm at 5 spaces instead of 6), with CI
green the whole time.
Reformats the offending line and widens both the format and format:check
globs to include messages/**/*.json. Verified the check now fails on a
deliberately misformatted en.json and passes once restored, so the gap is
actually closed rather than just currently clean.
No translation values changed — formatting only.
Closes #683
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
The format scripts only globbed
src/**/*.{ts,tsx}, so the translation files were never checked. An indentation slip had already landed through that gap —bulk.dismissAllConfirminen.jsonsits at 5 spaces instead of 6, introduced by #653 — with CI green the entire time.Two changes:
formatandformat:checkto includemessages/**/*.json, so the same class of drift can't land silently again.Spotted by @jonsuguiyama in #680.
Related issue
Closes #683
Type of change
fix— Bug fixHow to test
The point of this PR is that the check now catches something, so testing it means proving the gap is closed rather than merely currently clean:
I ran exactly that sequence: clean → deliberately misindented → check failed on
messages/en.json→ restored → check passed.Checklist
feature/,fix/,chore/,docs/)yarn lintpasses — no source files touchedyarn typecheckpasses — no source files touchedyarn format:checkpasses, now including the translation files