-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 typos #67304
base: trunk
Are you sure you want to change the base?
Fix typos #67304
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
1 similar comment
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @szepeviktor! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
@@ -11,7 +11,7 @@ export { | |||
BlockAlignmentControl, | |||
BlockAlignmentToolbar, | |||
} from './block-alignment-control'; | |||
export { default as __experimentalBlockFullHeightAligmentControl } from './block-full-height-alignment-control'; | |||
export { default as __experimentalBlockFullHeightAlignmentControl } from './block-full-height-alignment-control'; |
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.
I believe this was intentionally exported with a typo in the name for backward compatibility. If you check the export below, it has the correct name.
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.
@szepeviktor Thanks for the cleanup.
I think this PR contains a lot of unnecessary changes that need to be fixed and go through all CI. Could you address these issues?
"slug": "undestanding-global-state-local-context-and-derived-state", | ||
"slug": "understanding-global-state-local-context-and-derived-state", |
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.
I'm concerned that changing this slug may have ramifications for syncing with the Block Editor Handbook.
const settedValue = duotonePreset | ||
const setValue = duotonePreset |
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.
The name setValue
is often used as the set function in the useState
hook in Gutenberg projects.
To avoid confusion, how about using a different name? For example, duotoneValue
.
{ label: 'European Central Time', value: 'ECT' }, | ||
{ label: 'European Central Time', value: 'ETC' }, |
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.
This value is an abbreviation for "European Central Time", so no changes should be necessary.
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.
@t-hamano This is a halfdone PR.
So do you give a green light?
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.
Does this mean this PR is still a work in progress? Could you give us more details?
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.
This PR is the result of my default typos
config + typos -w
(autofix) + some manual work.
I need your confirmation before working on it for an hour or two.
- class="components-surface css-iin9ud-PolymorphicDiv-Surface-getBorders-primary e19lxcc00" | ||
- class="components-surface css-in9ud-PolymorphicDiv-Surface-getBorders-primary e19lxcc00" |
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.
This change should not be necessary.
/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g, // fooBar => foo-bar, 3Bar => 3-bar | ||
/(?!(?:1ST|2AND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g, // fooBar => foo-bar, 3Bar => 3-bar |
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.
This change should not be necessary.
desiredCaps.udid = androidDeviceID; | ||
desiredCaps.uuid = androidDeviceID; |
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.
I don't think this can be changed.
local simulators=$(xcrun simctl list devices -j | jq -r --arg runtime "$runtime_name" '.devices | to_entries[] | select(.key | contains($runtime)) | .value[] | .name + "," + .udid') | ||
local simulators=$(xcrun simctl list devices -j | jq -r --arg runtime "$runtime_name" '.devices | to_entries[] | select(.key | contains($runtime)) | .value[] | .name + "," + .uuid') |
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.
I don't think this can be changed.
@@ -6,8 +6,8 @@ index ad6ff3f..e0a6d51 100644 | |||
lineHeight: number | null; |
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.
This change seems to cause a lot of CI failures. I think this file cannot be modified because it is a patch for an external npm library.
<h2 class="wp-block-heading">ading</h2> | ||
<h2 class="wp-block-heading">adding</h2> |
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.
I think this is intentional, so if we change it the tests should fail.
<pre class="wp-block-code"><code>ading | ||
<pre class="wp-block-code"><code>adding |
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.
I think this is intentional, so if we change it the tests should fail.
@@ -221,7 +221,7 @@ exports[`getChangelog verify that the changelog is properly formatted 1`] = ` | |||
- Don’t use TypeScript files in scripts package. ([54856](https://github.com/WordPress/gutenberg/pull/54856)) | |||
- ESLint: Update eslint-plugin-testing-library to v6. ([54910](https://github.com/WordPress/gutenberg/pull/54910)) | |||
- Fix end-to-end test: ”WP Editor Meta Boxes > Should save the changes”. ([51884](https://github.com/WordPress/gutenberg/pull/51884)) | |||
- Font Library: Avoid deprected error in test. ([54802](https://github.com/WordPress/gutenberg/pull/54802)) | |||
- Font Library: Avoid deprecated error in test. ([54802](https://github.com/WordPress/gutenberg/pull/54802)) |
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.
The "typos" in this file refer to the original PR names on github so probably cannot be changed.
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.
I'd recommend to severely limit the scope of this PR. It's very hard to review and approve 436 typos across 259 files. As previously noted, many of the "typos" are not really typos here at all.
How about starting with just the typos in markdown files and code comments?
This is a good idea. A) I could close this PR and provide you with my Typos configuration Please decide! |
I've all I could. |
What?
Found few years of typos.
How?
Would you like me to work on it?
https://github.com/crate-ci/typos