-
Notifications
You must be signed in to change notification settings - Fork 800
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
Update jsdoc comments to better match WordPress coding standards #38466
Conversation
More specifically, this enables a few linting rules from `@wordpress/eslint-plugin` that had previously been disabled: * For `jsdoc/check-tag-names`, prefer `@return` and `@yield` over `@returns` and `@yields`. * Enable `jsdoc/check-line-alignment` for certain tags, most notably `@param. * Remove `jsdoc/check-indentation`, which conflicts with `jsdoc/check-line-alignment`.
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Beta plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Debug Helper plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Search plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Migration plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Automattic For agencies client plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Note we'll probably want to do a trunk merge just before merging this, to make sure this won't break on any jsdoc comments added in other commits. Then we'll want to update the pr-update-to tag to try to make sure people don't merge other PRs with jsdocs that would be broken with the changes here. |
…s-for-wp-coding-standards
…the tags that `jsdoc/check-line-alignment` aligns.
…s-for-wp-coding-standards
…s-for-wp-coding-standards
If someone wants to get this merged while I'm AFK, here's about how I've been resolving the conflicts in a trunk merge:
|
…s-for-wp-coding-standards
…s-for-wp-coding-standards
This looks like it needs another trunk merge, sorry :) I have reviewed it before my AFK, but couldn't get to merge it. |
No problem, something like this needs very frequent merges 😀 |
…s-for-wp-coding-standards
…s-for-wp-coding-standards
) More specifically, this enables a few linting rules from `@wordpress/eslint-plugin` that had previously been disabled: * For `jsdoc/check-tag-names`, prefer `@return` and `@yield` over `@returns` and `@yields`. * Enable `jsdoc/check-line-alignment` for certain tags, most notably `@param. * Update `jsdoc/check-indentation` rule config to not conflict with `jsdoc/check-line-alignment`.
) More specifically, this enables a few linting rules from `@wordpress/eslint-plugin` that had previously been disabled: * For `jsdoc/check-tag-names`, prefer `@return` and `@yield` over `@returns` and `@yields`. * Enable `jsdoc/check-line-alignment` for certain tags, most notably `@param. * Update `jsdoc/check-indentation` rule config to not conflict with `jsdoc/check-line-alignment`.
Proposed changes:
More specifically, this enables a few linting rules from
@wordpress/eslint-plugin
that had previously been disabled:jsdoc/check-tag-names
, prefer@return
and@yield
over@returns
and@yields
.jsdoc/check-line-alignment
for certain tags, most notably `@param.jsdoc/check-indentation
to avoid conflict withjsdoc/check-line-alignment
.Other information:
Jetpack product discussion
Followup to #38436
Draft announcement: pdWQjU-OP-p2
Does this pull request change what data or activity we track or use?
No
Testing instructions: