-
Notifications
You must be signed in to change notification settings - Fork 212
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
prettier jsdoc (bump, relax, more packages) #9438
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
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.
minor cleanups. One is a merge conflict marker.
space | ||
); | ||
const { consume, produce } = /** | ||
* @type {BootstrapPowers & { |
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.
can you make the warning here go away? (visible in github)
@@ -364,10 +363,12 @@ harden(buildZoe); | |||
* @param {BootstrapPowers & { | |||
* consume: { loadCriticalVat: ERef<VatLoader<PriceAuthorityVat>> }; | |||
* }} powers | |||
* <<<<<<< HEAD |
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.
merge conflict
61b2e92
to
a1f52c6
Compare
we mostly use it for the types formatting and .ts has that in the AST
style: separate typedef from fn signature
Description
I've found myself adjusting whitespace in
packages/orchestration
jsdoc. @kriskowal reminded me of the prettier plugin, which wasn't enabled in that package. We had an opt-in list because of bugs encountered in the past, like unstable formatting. (E.g. adding a newline on each save). In the latest version I'm only seeing that behavior when there's@typedef
mixed into a function signature definition, which isn't good form anyway. I expect whenever we see that behavior we can simply improve our Jsdoc to get around it.This bumps the plugin version to latest and adds several packages.
One config change is to stop the
jsdocCommentLineStrategy
that defaulted to "singleLine", because it makes a single* @import
comment turn into a single line and we almost always want it to be easy to add another line. I changed to "keep" instead of "multiline" so one can use the tighter format when they wish.Security Considerations
n/a, whitespace and whitespace config
Scaling Considerations
"
Documentation Considerations
"
Testing Considerations
"
Upgrade Considerations
"