-
Notifications
You must be signed in to change notification settings - Fork 47.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: Use typos
tool to detect various (~140
) typos across react codebase :) ✨
#26424
Conversation
- `readContextDuringReconcilation` --> `readContextDuringReconciliation` - change `reconcilation` to `reconciliation`
/** | ||
* @deprecated This is function is deprecated and will be removed in a future release. | ||
* Please use `readContextDuringReconciliation(...)` instead. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this typo fix,
// deprecated
readContextDuringReconcilation
// new
+ readContextDuringReconciliation
though this fn seems to be private, I deprecated it just in case it might be public.
Lmk if it's private or not and if it's okay to directly rename it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @acdlite
since you added this fn can you comment on the above?
Comparing: 842bd78...5b71faf Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
Also, can we add this tool (typos) to the CI or as a pre-commit hook? We can set up the typos workflow by keeping the typos.toml config that allows us to skip dirs, files, files w/ specific extensions, and repo-specific spell rules like (react uses Edit: ping @gaearon |
typos
to detect various (~140
) typos across react codebase :) ✨
typos
to detect various (~140
) typos across react codebase :) ✨typos
tool to detect various (~140
) typos across react codebase :) ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't fix typos in comments due to the high volume and noise in the git history they create. Fixes to user-facing typos are always welcome though. So if you reduce this PR to only fix user-facing typos, we can merge
Yeah. I get that part, but you did consider that this PR aims to fix all of the Typos in the "whole react codebase at once"!! Talking about noise in commit history;
Btw, since all PRs are merged as squashing commits, so I don't see the point of noise from single commit (If you want I can force push this branch by squashing all commits or make the PR description a single line like "Fix all typos using typos tool" or even two words "Fix typos", to reduce further noise in history) There also exists a hard way to merge all changes yet achieve zero noise in history but it would again mean we're polluting existing commit history by amend-ing changes to existing commits in each file resp. (w/ force push), which seems unprofessional and kind of useless. Do discuss this (the above bullets) with the team and Lmk, also I've no issues reverting typo fixes in comments. |
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you! |
Summary
This diff fixes various (
~140
) typos across react codebase :)How did you test this change?
This diff fixes various typos across react including all of the packages and the remaining codebase.
I came across an excellent tool named typos and used it to find the typos, yet I fixed all the typos manually to take into account the context of the words (e.g. React uses some string hashing algo and it provides the name of the algo which seems german, so basically it's kept as it).
For all of the changes, I assumed the
en-us
locale.Finally ran:
yarn prettier
yarn test
takes lot of time... ;)