-
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
Packages: Update eslint jsdoc plugin #65859
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: +335 B (+0.02%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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. |
42e615f
to
ff9f5bb
Compare
ff9f5bb
to
d005274
Compare
What?
The eslint-plugin-jsdoc is out of date and would be beneficial to update.
Notably, a new JSDoc tag
@import
for importing types is supported by TypeScript. The JSDoc eslint package should be updated to allow the syntax.It looks like this:
It has the advantage of working like a regular type import that can be re-used, without the disadvantage of the
@typedef
tag that implicitly re-exports the type.The upgrade package includes several breaking changes that should not correspond to a breaking update for Gutenbergs eslint plugin package:
Why?
See above.
Testing Instructions
CI should pass.
You can try using
@import
JSDoc tag locally (like in the example above) and it should produce no lint errors.