-
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
ESLint: Enable and enforce remaining i18n rules for the plugin (e.g. no trailing spaces) #60196
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. |
Size Change: +100 B (+0.01%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
CI reports:
These warnings are unrelated but errors can be easily fixed. |
#59835 should fix many of these errors |
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.
Great job taking it to the finish line. I left one comment where I’m not entirely sure whether the space at the end of translation should get removed. Should we enable the same rules inside ESLint config that we publish on npm in the follow up PR?
Yes that makes sense to me. The rules were added in #38225 for React Native / Android in mind, but as you can see here they're useful in general. Apparently I asked about this before in #19777 (comment) but never got an answer why this wasn't enabled by default everywhere. |
Right, I see it now. Yes, let's add it in a follow-up and land the changes for Gutenberg for now 🚀 |
…no trailing spaces) (WordPress#60196) Co-authored-by: Mahesh Bohara <[email protected]>
What?
These two ESLint rules are available in the ESLint plugin but are not enabled by default. This enables them for the Gutenberg repository.
Includes changes from #59835 to remove trailing spaces (props @maheshbohara)
Why?
Because GB should follow i18n best practices :-)
How?
Testing Instructions
createInterpolateElement
(e.g. the welcome guide) should still render with the proper linkTesting Instructions for Keyboard
Screenshots or screencast