Skip to content
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

Merged
merged 11 commits into from
Jun 4, 2024
Merged

Conversation

turadg
Copy link
Member

@turadg turadg commented May 31, 2024

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

"

@turadg turadg requested review from kriskowal and Chris-Hibbert May 31, 2024 19:54
@turadg turadg force-pushed the ta/prettier-jsdoc branch from 0b60981 to 9c1f0c4 Compare May 31, 2024 21:48
Copy link

cloudflare-workers-and-pages bot commented May 31, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0ecec09
Status: ✅  Deploy successful!
Preview URL: https://d6d487de.agoric-sdk.pages.dev
Branch Preview URL: https://ta-prettier-jsdoc.agoric-sdk.pages.dev

View logs

Copy link
Contributor

@Chris-Hibbert Chris-Hibbert left a 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 & {
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge conflict

@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Jun 3, 2024
@turadg turadg force-pushed the ta/prettier-jsdoc branch 2 times, most recently from 61b2e92 to a1f52c6 Compare June 4, 2024 14:29
@turadg turadg force-pushed the ta/prettier-jsdoc branch from a1f52c6 to 0ecec09 Compare June 4, 2024 15:06
@mergify mergify bot merged commit 35d20eb into master Jun 4, 2024
63 checks passed
@mergify mergify bot deleted the ta/prettier-jsdoc branch June 4, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants